-
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
Can't import certificate with google_compute_ssl_certificate resource #6143
Comments
@pierrefevrier Can you post your config for your import? What command did you run? |
Hi @edwardmedia , Sorry, output was hidden in my post, I just edited it so you can see what it is telling me and I added more details about the command I launch. Thanks. |
@pierrefevrier when I tested the import for your case, I used below code resource "google_compute_ssl_certificate" "my_domain" {
} And used below command. You need to replace {{name}} with real ssl cert name. |
Arf, when I talk about import, I mean Terraform to GCP, not GCP to Terraform (I didn't try to import the certificate via |
@pierrefevrier Oh I see. The error seems to be clear what went wrong. |
What do you mean by deploy a sample certificate (I don't have other certificates to test :/) ? Deploying the same certificate via GCP console works. |
@pierrefevrier I meant a self-signed certificate. |
Yeah, I managed to make it work by passing only the intermediate certificate ! |
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 👉 [email protected]. 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 # terraform -v Terraform v0.12.24 + provider.google v3.17.0 + provider.google-beta v3.17.0
Affected Resource(s)
Terraform Configuration Files
variables.tf
iap.tf
Output
Expected Behavior
The certificate should be imported, because it is valid.
Actual Behavior
The certificate is not imported.
Steps to Reproduce
.cer
) + the intermediate one (.cer
) + private key (.key
)I can successfully import this same certificate using the GCP console.
The text was updated successfully, but these errors were encountered: