terraform-aws-tfstate-backend
terraform-aws-tfstate-backend copied to clipboard
fix: update AWS provider to v6+ and correct region reference in templatefile
what
- Updated the Terraform configuration to support AWS provider version
>= 6.0.0 - Fixed incorrect attribute reference in the
templatefilefunction for region resolution
why
- Ensures compatibility with newer versions of the AWS provider (
v6.0.0+) to leverage updated features and improvements - Addresses a breaking change introduced in
terraform-provider-awsv6.0.0, wheredata.aws_region.current.nameis showing depreciation warning - Corrects the template input to use
data.aws_region.current.region, aligning with the expected attribute
references
- AWS provider v6.0.0 release notes: https://github.com/hashicorp/terraform-provider-aws/releases/tag/v6.0.0
- AWS provider v6.0.0 documentation: https://registry.terraform.io/providers/hashicorp/aws/6.0.0/docs/data-sources/region
- Related breaking change PR in AWS provider: https://github.com/hashicorp/terraform-provider-aws/pull/42131