-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_iam_policy_document orders actions anti-alphabetically #6107
Comments
Possibly related, we're seeing our list of |
Similar to this issue hashicorp/terraform#22931 I'm seeing this issue too with |
My read is close this in favor of #11801? |
hi |
@handlerbot I do not think this should be closed in favor of #11801 since that has the broader idea of order verses specifically the anti-alphabetical here. ALL: I would love to hear thoughts on whether switching the order would be a breaking change in any situations? |
Of note, the data source retains the original order -- it's being reversed in the json output only. |
When describing an IAM policy document in HCL using the
data
statement, the entries are sorted from Z to A. If you happen to sort normally sort things alphabetically, this will cause confusion and diffs in plans.Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Actions sorted alphabetically.
Actual Behavior
Actions sorted reverse alphabetically.
Steps to Reproduce
terraform refresh
The text was updated successfully, but these errors were encountered: