Closed piercefreeman closed 3 months ago
Hi @piercefreeman,
As certificates generated using Let's Encrypt will change their ID when renewed and certificates must use a unique name, we use the certificates name as its ID in Terraform. e.g.:
terraform import digitalocean_certificate.cert my-app-cert
Let us know if that resolves the problem for you.
Thanks for checking this out @andrewsomething. I've confirmed using the credential name does solve this issue; missed the indication in the docs that this endpoint takes the name vs the UUID as in other imports. Will go ahead and close this out.
Bug Report
Describe the bug
I'm trying to import a certificate that I've created outside of terraform into my current state.
Affected Resource(s)
digitalocean_certificate.cert
Expected Behavior
The certificate is successfully found and imported.
Actual Behavior
Steps to Reproduce
Terraform version
Additional context
This occurs with all certificates that I attempt to import.