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

Error when adding ssl cert to elb on AWS #4614

Closed
aldarund opened this issue Jan 10, 2016 · 4 comments
Closed

Error when adding ssl cert to elb on AWS #4614

aldarund opened this issue Jan 10, 2016 · 4 comments

Comments

@aldarund
Copy link

I have added following into my tf conf.

resource "aws_iam_server_certificate" "rent_cert" {
  name = "some_test_cert"
  certificate_body = "${file("ssl-cert.pem")}"
  private_key = "${file("ssl-key.pem")}"
}

and into elb conf

  listener {
    instance_port = 9999
    instance_protocol = "HTTP"
    lb_port = 443
    lb_protocol = "https"
    ssl_certificate_id = "${aws_iam_server_certificate.rent_cert.arn}"
  }

After applying plan i get following error:

Error applying plan:

1 error(s) occurred:

  • aws_elb.rentapp_service: Failure adding new or updated ELB listeners: CertificateNotFound: Server Certificate not found for the key: arn:aws:iam::133662108267:server-certificate/some_test_cert
    status code: 400, request id: 1c101d7d-b7e5-11e5-b996-efd4aa145c43

But in logs there was:

aws_iam_server_certificate.rent_cert: Creating...
  arn:              "" => "<computed>"
  certificate_body: "" => "c35c92ef60c0e74ebdab7a9fab020f41c3d4bef7"
  name:             "" => "some_test_cert"
  path:             "" => "/"
  private_key:      "" => "47d42cf5a4df2c7cc198f5d28d713c8f85e161c1"
.....
aws_iam_server_certificate.rent_cert: Creation complete

After applying second time without changing anything the error is gone and its applied succesfully

@saliceti
Copy link
Contributor

saliceti commented Feb 8, 2016

Same issue here. With Terraform 0.6.10

@catsby
Copy link
Contributor

catsby commented Feb 17, 2016

Hi friends – this will be patched with #5178, where I've added a retry for this case

@stack72
Copy link
Contributor

stack72 commented Feb 22, 2016

Hi @aldarund, this has been fixed now that #5178 has been merged. It will be available in Terraform 0.6.12 in 1 or 2 days

@stack72 stack72 closed this as completed Feb 22, 2016
@ghost
Copy link

ghost commented Apr 28, 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 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants