-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform fails to identify missing sns subscriptions #6625
Comments
missing Fixes #6625 When an SNS topic subscription was created with TF and then removed via the AWS Console, Terraform threw an error: ``` * aws_sns_topic_subscription.testme: NotFound: Subscription does not * exist status code: 404, request id: a22e7ed7-3630-5a8a-b767-317ac1440e24 ``` This PR will remove the topic subscription from state on a NotFound and will then readd the subscripton
apologies for not picking this up in the first Paul |
) missing Fixes #6625 When an SNS topic subscription was created with TF and then removed via the AWS Console, Terraform threw an error: ``` * aws_sns_topic_subscription.testme: NotFound: Subscription does not * exist status code: 404, request id: a22e7ed7-3630-5a8a-b767-317ac1440e24 ``` This PR will remove the topic subscription from state on a NotFound and will then readd the subscripton
No worries, all good. Thanks for the quick response. |
…shicorp#6629) missing Fixes hashicorp#6625 When an SNS topic subscription was created with TF and then removed via the AWS Console, Terraform threw an error: ``` * aws_sns_topic_subscription.testme: NotFound: Subscription does not * exist status code: 404, request id: a22e7ed7-3630-5a8a-b767-317ac1440e24 ``` This PR will remove the topic subscription from state on a NotFound and will then readd the subscripton
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
See #4888 for the original case which only addressed the
aws_sns_topic
resources but not theaws_sns_topic_subscription
one. I can see the related PR #4891 updatedaws_sns_topic
but didn't touch the subscriptions.Terraform Version
Affected Resources
Terraform Configuration Files
Expected Behavior
Terraform would translate the
NotFound
response code to a missing resource and try to create it.Actual Behavior
Terraform bails out in planning mode with an unexpected error.
Steps to Reproduce
aws_sns_topic
and aaws_sns_topic_subscription
and create an execution plan... but instead it bails out with
References
The text was updated successfully, but these errors were encountered: