-
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
DuplicateListener when creating ELB with new certificate #4880
Comments
There is a race condition in Terraform when it creates an ELB with a newly created certificate: ``` * aws_elb.concourse: Failure adding new or updated ELB listeners: DuplicateListener: A listener already exists for colin-cert-concourse with LoadBalancerPort 443, but with a different InstancePort, Protocol, or SSLCertificateId status code: 400, request id: 3a2ed326-c5ce-11e5-9f46-a5c7d320375f ``` Here we add a sleep to give time to the IAM certificate to propagate. An issue was raised: hashicorp/terraform#4880
I've tested successfully twice with 0.6.10. I think you can close the issue. |
This includes a fix for the `DuplicateListener` problem describe in hashicorp/terraform#4880 and worked around in alphagov/paas-cf@f46ff52 Colin has confirmed that this now works without the `sleep 10`. I don't believe we are affected by any of the backwards incompatibility items listed in the CHANGELOG: - https://github.com/hashicorp/terraform/blob/v0.6.10/CHANGELOG.md#0610-january-27-2016
Awesome, thank you for getting back @saliceti (sorry it took me 2 weeks to reply 😦) |
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. |
This is happening on Terraform
0.6.9
.When uploading a new certificate to IAM and creating a new ELB using this certificate in a listener, terraform fails with the error:
Code:
It looks like a race condition because it succeeds consistently if I add the above
sleep
in the local provisioner. It also works every time when I useTF_LOG
trace
ordebug
(which I assume makes terraform slightly slower).The text was updated successfully, but these errors were encountered: