-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sort IAM policy bindings by their role name to get simpler diffs #3855
Conversation
Can go a step further and sort members of each binding too. |
3159d0d
to
7840103
Compare
An alternative option may be to convert all |
7e67914
to
fc25f8a
Compare
Will this show diffs for users that already have iam policies defined in their terraform configs? |
No it does not. |
…t's what the API does
fc25f8a
to
e794a41
Compare
The resources where this datasource is used are already suppressing the diffs with the |
Let me provide some examples to demonstrate the result of this change. |
Here's a test case configuration: https://gist.github.com/pdecat/4450fbbee34074d9df9cdb56ceac6772 After having applied that configuration with v2.9.1 and commenting line 86, here's the plan: https://gist.github.com/pdecat/fd84253c753fa9c20b8995e699da07b4 With this modification, here's the plan: https://gist.github.com/pdecat/629a8d7e733122737002e02bf2f92964 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the detailed clarification!
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This should resolve #3728