data-source/aws_partition: reverse_dns_prefix attribute incorrect outside AWS Commercial and GovCloud (US) #17140
Labels
bug
Addresses a defect in current functionality.
partition/aws-cn
Pertains to the aws-cn partition.
partition/aws-iso
Pertains to the aws-iso partition.
partition/aws-iso-b
Pertains to the aws-iso-b partition.
provider
Pertains to the provider itself, rather than any interaction with AWS.
Milestone
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
Expected Behavior
cn.com.amazonaws
gov.sgov.sc2s
gov.ic.c2s
Actual Behavior
It is reverse sorted alphabetically:
com.cn.amazonaws
sc2s.sgov.gov
ic.gov.c2s
Steps to Reproduce
terraform apply
Important Factoids
The sorting is using
sort.Reverse()
not slice index swapping.References
The text was updated successfully, but these errors were encountered: