hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.86k stars 9.21k forks source link

data-source/aws_partition: reverse_dns_prefix attribute incorrect outside AWS Commercial and GovCloud (US) #17140

Closed bflad closed 3 years ago

bflad commented 3 years ago

Community Note

Terraform CLI and Terraform AWS Provider Version

Any version of Terraform CLI and Terraform AWS Provider version 3.24.0/3.24.1

Affected Resource(s)

Terraform Configuration Files

data "aws_partition" "current" {}

output "reverse_dns" {
  value = data.aws_partition.current.reverse_dns_prefix
}

Expected Behavior

Actual Behavior

It is reverse sorted alphabetically:

Steps to Reproduce

  1. terraform apply

Important Factoids

The sorting is using sort.Reverse() not slice index swapping.

References

ghost commented 3 years ago

This has been released in version 3.27.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

ghost commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ā³. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!