-
Notifications
You must be signed in to change notification settings - Fork 1.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
After importing google_compute_ssl_certificate resource is marked to be replaced #8113
Comments
API does not return @c2thorn your thoughts? |
Thanks for the prompt reply. If this is the case then wouldn't it be better to disable importing such a resource? Would be a bummer though. |
There isn't a good way to handle this well in the provider. There is no way to verify that If you want to import this resource, I suggest adding |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.14.2
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
tf import 'google_compute_ssl_certificate.global_cert' 'projects/myproject/global/sslCertificates/mycert-04ebddd630a87c'
would import the certificate and no change will appear onterraform plan
Actual Behavior
Imports the certificate successfully
name_prefix
andprivate_key
are missing and marked to be added asking for the certificate to be replacedI checked the state file and it was mentioned as
null
So I tried manually adding those fields in the state file, it caused the addition of those fields in the plan but still asks to be replaced with all the fields except for the manually modified ones(
private_key
&name_prefix
) to be changedSteps to Reproduce
terraform import google_compute_ssl_certificate
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: