[Bug]: Perpetual diffs with aws_iam_role
assume_role_policy
and Statement.Condition
#28835
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Originally submitted as #23288 (comment) by @cshen-confluent.
Terraform Core Version
1.2.3
AWS Provider Version
4.21.0
Affected Resource(s)
Expected Behavior
Creates and refreshes without changes
Actual Behavior
Role will be updated in-place.
Some information redacted.
I just added a blank line in code and this update plan will be generated among a lot other similar ones, and apply them won't make any actual change. Add another blank line will trigger the same plan.
We did some work to pinpoint the issue on Condition.IpAddress that if we don't put anything there it is fine.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
terraform apply
Debug Output
Panic Output
No response
Important Factoids
No response
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: