Closed EugenKon closed 4 weeks ago
@EugenKon can you try again with a completely fresh state as mentioned in #440?
Sure, if I start from the clean state it works. The issue is that my state and actual states are differ and terraform does not report that.
@EugenKon just judging from the commentary in #440, I would not expect the state to work consistently without a full destroy/recreation of the state from the staging infrastructure. If this is not manifesting when the directory URL is not being changed, then things are working as expected.
My recommendation is to, as mentioned in the acme_registration
resource docs, make sure you separate staging and production environments using workspaces; note that I'd recommend this over multiple provider instances (as also mentioned in the docs) as I don't think you need to have multiple directories in the same configuration in your instance.
Thanks!
When I removed the state https://github.com/vancluever/terraform-provider-acme/issues/440https://github.com/vancluever/terraform-provider-acme/issues/440 I ran
plan/apply
and got the next error:When I rerun
plan/apply
the error gone, but certificate at AWS storage stays unchanged.Expected result
If error happens then the state should be in wrong state. The next plan/apply should not report that error magically gone.