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

Terraform crashed #3784

Closed
ghost opened this issue Mar 14, 2018 · 4 comments · Fixed by #5798
Closed

Terraform crashed #3784

ghost opened this issue Mar 14, 2018 · 4 comments · Fixed by #5798
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/lambda Issues and PRs that pertain to the lambda service.
Milestone

Comments

@ghost
Copy link

ghost commented Mar 14, 2018

This issue was originally opened by @ravisr as hashicorp/terraform#17581. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform crashed when deploying lambda.

Version: Terraform v0.11.3

Config File:

variable "role" {}
variable "region" {}
variable "env" {
    default = "DEV"
}

provider "aws" {
    region = "${var.region}"
}

resource "aws_lambda_function" "lambda_handler" {
    function_name = "Portal_Admin_Console_countries"
    handler = "lambda_function.lambda_handler"
    runtime = "python2.7"
    filename = "build.zip"
    source_code_hash = "${base64sha256(file("build.zip"))}"
    role = "${var.role}"
    publish = true
}

Crash Output

https://gist.github.com/ravisr/a504170f7a4b32dcbae86bb10ecef87a

Expected Behavior

Deployment should succeed

Actual Behavior

Terraform Crashed

@loivis
Copy link
Contributor

loivis commented Mar 14, 2018

Caused by removal of vpc_config. Related PRs #1341 #3473

@bflad bflad added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/lambda Issues and PRs that pertain to the lambda service. labels Mar 14, 2018
@bflad bflad added this to the v1.35.0 milestone Sep 5, 2018
@bflad
Copy link
Contributor

bflad commented Sep 5, 2018

The fix for this crash along with properly handling aws_lambda_function resource vpc_config removals by actually removing the VPC configuration from the Lambda function has been merged into master and will be released with version 1.35.0 of the AWS provider, likely later today.

@bflad
Copy link
Contributor

bflad commented Sep 6, 2018

This has been released in version 1.35.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link
Author

ghost commented Apr 3, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/lambda Issues and PRs that pertain to the lambda service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants