aws_iam_policy_document with multiple principals in a dynamic block #22560
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/iam
Issues and PRs that pertain to the iam service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v1.1.3
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
I was expecting terraform plan to return no change.
(I was just refreshing some other stuff, the previous plan/apply was with terraform 0.14.11,
I updated to the latest version of terraform at the same time)
I replaced the dynamic block by :
principals {
type = "AWS"
identifiers = [for k in var.monikers : "arn:aws:iam::12345:role/role_${lower(k)}"]
}
It the plan didn't return any change anymore.
Actual Behavior
Steps to Reproduce
Just terraform plan return always the same change in the list order in my role.
Important Factoids
References
The text was updated successfully, but these errors were encountered: