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

aws_elb, not useful error message when a wrong SSL cert name is used #5102

Closed
egarbi opened this issue Feb 11, 2016 · 4 comments
Closed

aws_elb, not useful error message when a wrong SSL cert name is used #5102

egarbi opened this issue Feb 11, 2016 · 4 comments

Comments

@egarbi
Copy link
Contributor

egarbi commented Feb 11, 2016

Trying to create a new LB today I passed a non-existent SSL name as argument on "ssl_certificate_id".
As a result terraform returned a timeout message:

 aws_elb.apisvc: timeout while waiting for state to become '[success]' 

Would be possible improve the message given for this case?

@sharmaansh21
Copy link
Contributor

@vladlosev
Copy link

That check does not seem to trigger. This is what I see on 0.6.10:

2016/02/24 12:13:19 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:19 [DEBUG] ELB create configuration: {
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:   Listeners: [{
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:       InstancePort: 443,
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:       InstanceProtocol: "https",
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:       LoadBalancerPort: 443,
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:       Protocol: "https",
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:       SSLCertificateId: "arn:aws:iam::<snip>:server-certificate/invalid"
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:     }],
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:   LoadBalancerName: "varnish",
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:   Scheme: "internal",
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:   SecurityGroups: ["sg-ea71c48d"],
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws:   Subnets: ["subnet-b20cb1c5"]
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws: }
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:19 [DEBUG] Waiting for state to become: [success]
2016/02/24 12:13:19 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:19 [TRACE] Waiting 500ms before next try
2016/02/24 12:13:20 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:20 [TRACE] Waiting 500ms before next try
2016/02/24 12:13:21 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:21 [TRACE] Waiting 500ms before next try
2016/02/24 12:13:21 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:21 [TRACE] Waiting 800ms before next try
2016/02/24 12:13:22 [DEBUG] terraform-provider-aws: 2016/02/24 12:13:22 [TRACE] Waiting 1.6s before next try

while the CloudTrail logs show the actual error:

    "eventSource": "elasticloadbalancing.amazonaws.com",
    "eventName": "CreateLoadBalancer",
    "awsRegion": "us-west-2",
    "userAgent": "aws-sdk-go/1.0.11 (go1.5.3; darwin; amd64)",
    "errorCode": "CertificateNotFoundException",
    "errorMessage": "Server Certificate not found for the key: arn:aws:iam::<snip>:server-certificate/invalid",

@catsby
Copy link
Contributor

catsby commented Mar 15, 2016

Hey Friends –

This is a retry/timeout issue we fixed in #5538 and will go out in the next release. Sorry for the trouble!

@catsby catsby closed this as completed Mar 15, 2016
@ghost
Copy link

ghost commented Apr 27, 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 27, 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

5 participants