-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_acm_certificate: Error with private_key argument when updating an imported certificate #7401
Comments
Hi @tsacha 👋 Sorry for the strange behavior here. It appears there might be something awry outside the
Making the following
The Let us know! |
Hi @bflad, thanks for your reply. During the certificate renewal, private key is unmodified. Maybe my scenario is not the same than I don't think I've made mistakes with my data sources: the first import is working correctly. The extra Thanks! |
Same issue for me. Any updates here? |
I faced similar issue when I tried updating my existing certificate in aws cert manager.Its not allowing update certificate.
|
I've been having that same updating certificate error where it couldn't validate the certificate using the provided certificate chain so now I'm tainting the resource before running the terraform apply... Can't seem to find any other way around this at the moment. Note: I am using Terraform 0.11.14, I don't know if upgrading to 0.12 will fix this. |
I've had this in
It works fine for creation, but if I modify the |
i think the problem is a better solution will be using base64 encoding/decoding on the cert, so it can be convert back when needed instead of take a one direction hash SHA1. this also applies to resource_aws_iam_server_certificate.go, we dont use it, so i dont know |
Hi folks 👋 The fix for this, saving the full attribute values in the Terraform state instead of hashed values, has been merged and will release with version 3.0.0 of the Terraform AWS Provider, likely in two weeks. The version 3 upgrade guide will outline some details about a one-time
If you have trouble after upgrading to version 3.0.0 of the Terraform AWS Provider, please create a new issue and we will take a look. Thanks so much and apologies for the frustrating behavior in the meantime. |
This has been released in version 3.0.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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. Thanks! |
Community Note
Terraform Version
Terraform v0.11.11
Affected Resource(s)
Terraform Configuration Files
Debug Output
Trace output: https://gist.github.com/tsacha/2ceba19db9b04f459cfbd8fb8b166b6f
I tried to add a print here
Instead of the file content, resource ID is printed. My Terraform knowledge is not enough to continue.
Panic Output
Expected Behavior
Non-Amazon issued certificate is updated.
Actual Behavior
Certificates are not modified on Amazon.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: