-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to import a dnsimple_lets_encrypt_certificate resource? #171
Comments
Hi @case-fastly, currently the provider does not support importing certificate resources orders, which is what the Whenever you create a As a result, we have the |
Ah ok, I appreciate the clarification. From my (albeit naive!) reading of the docs, fwiw it wasn't clear to me that this resource represents a LE "order" -- I assumed it represented the certificate's "presence" in the domain's associated config. (the Terraform provider resource docs here don't mention that this is a one-time order for a cert, not a higher-level representation of the cert's presence) My primary use-case here is, "I wanted to confirm that the domain has a LE cert attached to it" which I was hoping to store in our Terraform code. |
I also came here looking for this; I've reset (unintentionally) my Terraform state, and in trying to keep our DNSimple account as clean as possible, I was wanting to import the existing order instead of disabling auto-renew on the existing one via the web UI and letting Terraform provision a new order. |
Thank you for sharing your use cases. Unfortunately, we currently do not have the necessary APIs in place to support certificate imports. I’ll share your feedback with the team to ensure this is on our radar for future improvements. In the meantime, as @smaddock suggested, the only available option is to disable auto-renewal on the existing certificates and request new ones. |
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.v1.6.3
Affected Resource(s)
dnsimple_lets_encrypt_certificate
Is it possible to
import
your Lets Encrypt cert resources? I don't seeimport
mentioned on this documentation page:https://registry.terraform.io/providers/dnsimple/dnsimple/latest/docs/resources/lets_encrypt_certificate
I tried following the same syntax as your docs suggest for importing other resource types, but received the following error in return:
The text was updated successfully, but these errors were encountered: