[Bug]: aws_sns_topic fails to plan if the deployed resource policy references IAM roles which have been deleted or recreated #38178
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
service/sns
Issues and PRs that pertain to the sns service.
Terraform Core Version
1.5.7
AWS Provider Version
5.10.0
Affected Resource(s)
Expected Behavior
A broken policy should have been retrieved from AWS without causing the plan to fail
Actual Behavior
The Terraform run failed with an error when preparing the plan
Relevant Error/Panic Output Snippet
Error: reading SNS Topic (arn:...): contains invalid principals
Terraform Configuration Files
Steps to Reproduce
This is an approximation of what I was doing to trigger the issue
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: