-
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
Fails to refresh state SNS subscription deletions #4888
Comments
Reproduced, @stack72 's PR is fixing it. |
What would you suggest in the meantime before a new release? |
@radeksimko hmm that still gives me the same errors on plan/apply (v0.6.10), so far the only thing that seems to work is to remove my state and start from scratch again |
@tj my fix hasn't been released yet. It will be in 0.6.11 |
@stack72 oh no I was referring to the commands above to taint it and fix the state |
I think the problem is that then you'll be getting the error from the delete API method instead of read... So unfortunately it's not easily solvable until the bug is fixed, but the release is just coming out, so hopefully you should see it in couple of hours. |
@radeksimko hmm so I tried with 0.6.11 and still get the same thing:
I tried with the tainting as well :( |
Still can't destroy everything either |
@tj It works for me: provider "aws" {
region = "us-west-2"
}
resource "aws_sns_topic" "checker" {
name = "tf-checker-topic"
}
output "arn" {
value = "${aws_sns_topic.checker.arn}"
}
It you keep having issues, either with this resource or different one, please open a new issue and attach a repro case & terraform version. If we're able to reproduce it, we should be able to fix it. Thanks! |
Have the same issue with aws_cloudfront_distribution resource in terraform 0.7.5 |
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. |
I had some weird issues with SNS topic subscriptions not registering properly unless managed from the UI, so I deleted those at some point and now TF is freaking out. I tried tainting, removing them from config, refreshing state, but the errors won't go away:
Shouldn't terraform just detect that it's gone and create it? I'm not sure if this is a bug or just a UX issue. I swear I've deleted things plenty in the past and have TF bring it back up.
The text was updated successfully, but these errors were encountered: