Perpetual diff when using an aws_ecs_service ARN in an IAM policy #14892
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
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
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The expected IAM policy should be created via
terraform apply
, and then afterwards it shouldn't show any diffs in subsequent aterraform plan
.Actual Behavior
The expected IAM policy is created. But subsequent
terraform plan
's show a diff saying that the policy is going to be changed. Then a subsequentterraform apply
will say that it has applied the change, but no actual changes happened and no new policy version was created. Then rinse/repeat with plan/apply over and over and the diff will continue to say the policy will change.Steps to Reproduce
apply
and see that the expected IAM policy is created.plan
and see that the expected policy shows up in the diff saying that it will change.apply
againIf you set
resources = ["*"]
the perpetual diff will stop, but it would be nicer to not need to do that.The text was updated successfully, but these errors were encountered: