-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
(aws_iam_server_certificate) Error when creating SSL Certificate #5158
Comments
Hey @gregorskii ! Is there any more context you can provide for me here? I'm unable to reproduce this in a new create operation, specifically. I can reproduce a similar error when I'm trying to update an existing SSL cert that is currently in use. Any chance you're doing something similar? |
Yes that is likely what was happening. The SSL was created by TF attached to a ELB. I was not changing the SSL contents at all, it appeard that when using the file() process it was reading a new value (or what was on AWS was invalid). I was only able to disassociate the SSL from the LB in the console website. Would it be possible for TF to disassociate the SSL from the LB while it updates it? Or create a new resource and swap it? |
Hey @gregorskii – yeah the typical work around here is to employ the create_before_destroy lifecycle block. In order for that to work though, the resource may need an auto-generated name to avoid name conflicts, which |
Ok thank you, I have found a temporary workaround. I will wait for that ticket to be merged. Feel free to keep this open or close it. Thanks! |
Thanks for the follow ups! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
I am getting an error when creating a SSL certificate:
Where ssl_key_path, ssl_cert_path are valid and defined in the tfvars.
Using Terraform 0.6.11
The text was updated successfully, but these errors were encountered: