-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
plan output shows aws_iam_policy_document statement condition taking only the last item in a list #21956
Comments
Might be related to #19533 |
My view the dynamic block usage in this context is invalid. What you want to achieve is single condition with multiple values, but if you base on service account variable it become multiple conditions with single value. Therefore it always taken the last value as a valid condition.
You should try,
|
The dynamic is ideal here as it allows the IAM role module to be more generic, supporting both an IRSA role as well as others, that do not have any condition blocks. Creating a module JUST for IRSA role is an alternative, but requires unneeded overhead. This is something that was working as expected prior to 3.67. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.31
registry.terraform.io/hashicorp/aws v3.67.0
Affected Resource(s)
aws_iam_policy_document
Terraform Configuration Files
providers.tf
main.tf
terragrunt.hcl
Debug Output
Panic Output
Expected Behavior
There should be no change to the condition
Actual Behavior
This change is shown
Steps to Reproduce
terragrunt plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: