[Bug]: aws_organizations_policy_attachment throws an error when a managed policy is deleted but still in state #27231
Labels
bug
Addresses a defect in current functionality.
service/organizations
Issues and PRs that pertain to the organizations service.
Milestone
Terraform Core Version
0.13.5
AWS Provider Version
4.34.0
Affected Resource(s)
aws_organizations_policy_attachment
Expected Behavior
The missing policy should be detected and TF should attempt to re-create
Actual Behavior
Error: PolicyNotFoundException: You specified a policy that doesn't exist.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: