Open jlucktay opened 3 years ago
For other folks landing on this issue with the same problem: a workaround is to manually remove all resources that this TF provider reports as missing and then re-running TF plan/apply.
For example, for an output like this:
$ terraform apply
Acquiring state lock. This may take a few moments...
stripe_plan.tier_0_monthly_subscription: Refreshing state... [id=plan_JMq4PtQeTJIdrZ]
Error: {"code":"resource_missing","doc_url":"https://stripe.com/docs/error-codes/resource-missing","status":404,"message":"No such plan: 'plan_JMq4PtQeTJIdrZ'","param":"plan","request_id":"req_hdinACXCrr1Mw0","type":"invalid_request_error"}
Running
terraform state rm 'stripe_plan.tier_0_monthly_subscription'
and then re-running terraform apply
would likely fix the problem. It's possible that the TF provider will complain of other missing resources, so just keep terraform state rm
ing them until it doesn't complain.
Is removing resources manually considered as final resolution? It is quite unfortunate to solve it this way I think.
@franckverrot do you plan to address this? :pray:
Hi there, and thank you for this provider! Looking forward to making use of it. I was fiddling with some of the basic usage stuff outlined in the README and ran into a snag.
code = "MLK_DAY"
code
value in my.tf
fileterraform apply --auto-approve
MLK_DAY
terraform apply --auto-approve
againMLK_DAY
terraform apply --auto-approve
again and got the following:Will take a quick look and see if I can put a PR together to straighten things out.
The 2 issues as I see them: