Skip to content
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

Failure in aws_elb with multiple listeners #3301

Closed
silvamerica opened this issue Sep 23, 2015 · 4 comments · Fixed by #3898
Closed

Failure in aws_elb with multiple listeners #3301

silvamerica opened this issue Sep 23, 2015 · 4 comments · Fixed by #3898

Comments

@silvamerica
Copy link

I seem to be getting a failure the first time I try to run apply. If I run it again it, it works. My listener config is:

listener {
  instance_port = 389
  instance_protocol = "tcp"
  lb_port = 389
  lb_protocol = "tcp"
}

listener {
  instance_port = 636
  instance_protocol = "tcp"
  lb_port = 636
  lb_protocol = "tcp"
  ssl_certificate_id = "ssl-cert"
}

The first error is:

Failure adding new or updated ELB listeners: DuplicateListener: A listener already exists for terraform-ldap-staging with LoadBalancerPort 636, but with a different InstancePort, Protocol, or SSLCertificateId
status code: 400

If I re-run apply, everything works.

@catsby
Copy link
Contributor

catsby commented Nov 13, 2015

Hey @silvamerica – I believe this is fixed in #3898

Note that ssl_certificate_id is only valid for HTTPS, or SSL protocols. Otherwise, AWS will discard the contents of ssl_certificate_id.

@mrwilby
Copy link

mrwilby commented Jan 14, 2016

Was this fixed? I see the exact same symptoms as reported by the OP... Running 0.6.9

@dharmeshpurohit-24
Copy link

Hi, silvamerica
just remove the ssl_certificate_id from the second listener and it will work fine. We can only use "ssl_certificate_id " for either ssl or https protocol.
For more detail please refer this link for ELB
https://www.terraform.io/docs/providers/aws/r/elb.html

@ghost
Copy link

ghost commented Apr 14, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants