-
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_elastic_beanstalk_application: panic when applying #6624
Comments
The issue appears to have been with this setting: setting {
namespace = "aws:elb:loadbalancer"
name = "SecurityGroups"
value = "{\"Fn::GetAtt\":[\"AWSEBLoadBalancerSecurityGroup\",\"GroupId\"]},{\"Ref\":\"AWSEBLoadBalancerSecurityGroup\"}"
} This was causing the environment creation to fail in AWS. I updated the expectations above. Removing this setting allowed |
@thomasvandoren Thanks for the detailed description. I did find one potential issue, but it may be unrelated to the error you saw. Just to verify this wasn't the issue, can you let me know which region this was deployed to? I really doubt this was the problem that caused the panic though, so I'll continue to try and reproduce the issue and figure out what caused this. Thanks! |
us-west-2 |
Sorry for the delay here, but I have finally had some time to get back to this. The issue occurs when Terraform attempts to read the CNAME from the environment. In this case, beanstalk creates or updates the environment in a "grey" health with no cname. So when the code attempts to read the CNAME, it panics because it doesn't exist. Since the API doesn't return any errors when invalid settings are applied, I'll also need to add something to check for these errors and return something useful to the user, instead of successfully applying the environment with a bad setting value. Once I figure that part out I'll submit a PR that fixes this today. @stack72 Not sure if anyone else has been working on this issue, but this is where I am at. I believe this is the same issue as #6707 and #7197. |
Hi @dharrisio, Paul |
Fixed in #7222 , thanks @dharrisio ! Thank you @thomasvandoren for reporting |
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. |
Terraform Version
Terraform v0.6.15
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.githubusercontent.com/thomasvandoren/4d0b3e6ad8f066d6de2f2008306b7d55/raw/c3dcba22144bbb1395f78c837848c5325e3dc1d6/tf-2016-05-11-clean-crash.log
Panic Output
See above.
Expected Behavior
terraform apply
reports an error in AWS.Actual Behavior
terraform apply
crashesSteps to Reproduce
terraform apply
Important Factoids
Nothing comes to mind.
References
None that I could find.
The text was updated successfully, but these errors were encountered: