-
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
provider/aws: Fixes terraform crash when lambda VpcId is nil #5182
provider/aws: Fixes terraform crash when lambda VpcId is nil #5182
Conversation
Turns out the problem is more general that I originally thought. It seems that the VPC config can be in three different states: non-existent, empty, or set. It transitions from non-existent to empty if somebody fiddles with it in the console afaict. For our purposes, empty is equivalent to non-existent. |
Thanks for finding this! The test failure in Travis is unrelated to this PR. Is there any possible way we can test this bugfix? (i.e. add an acceptance test for it) |
Quick update on this:
|
Well, I tried to harden this as best I could. There is still a failure case if the |
provider/aws: Fixes terraform crash when lambda VpcId is nil
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. |
@vincer @radeksimko @jen20 apparently, with existing lambdas (created before VPC support),
VpcId
can be nil, which causesterraform
to panic.Extract from
crash.log