-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: Certificate not found even though it was just created #2499
Comments
Thanks for the report - we've seen this issue in several different places. We'll have to see if there's something we can do after the certificate create to ensure it's ready to be attached to an ELB. |
👍 |
I'm playing with this now. The AWS logs say that it can take up to 15 minutes for certificates to propagate, which would indeed be a really sad thing. I'm trying to find a way for us to detect this since the API doesn't seem to expose it. |
Just ran into the same issue. |
I have the same issue, one workaroud is to wait for a while in local provisioner :
10 seconds wait time seems to work for me. May a terraform function can be introduced to handle the need for external waiting? e.g. depend_on with a waiting time. |
#3898 was merged, so I'm going to close this. |
👍 |
Can you elaborate on how you're doing this? The retry logic in #3898 should retry the creation for up to 1 minute, so, I'm not sure where a Or is this for deletion? This issue has crossed some wires 😄 |
Sure can, @catsby! Here's the whole resources for funzies:
It's on creation. I'm not sure I'll have time to re-run everything, but I'll do that as soon as I can and get back with you on the ELB Listener warning! |
@nathanielks I attempted to reproduce with this: but I can't. Let me know what I'm missing |
I think I'm hitting this in terraform v0.10.8 when trying to assign a newly saved IAM server certificate to an ALB listener. Terraform gives me an ARN for |
Yeah, I'm hitting this in terraform v0.10.8 as well. It works on macOS and Ubuntu 16, but fails on Centos/Jenkins running on EC2. |
It seems I'm experiencing the same thing as @jurajseffer . The only different thing I'm doing is pulling the cert in from another AWS account with a separate provider. Terraform returns the correct ARN, pass's it into the ELB Listener but then fails with the certificate not found error. EDIT: Apologies, I've now seen that AWS don't support using of certificates across trusted accounts. A change to get a different error message could still be good though? |
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. |
Related: #2490
I deleted the certificate using AWS's cli. The output shows it was created but then when it goes to create the ELB, AWS says that the certificate doesn't exist.
Here are the logs.
The text was updated successfully, but these errors were encountered: