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

r/lambda_function: update lambda package type check to prevent panic #16544

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Dec 2, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #16532

Release note for CHANGELOG:

resource/aws_lambda_function: Prevent panic on nil function PackageType

Output from acceptance testing (commercial):

--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionName_Arn (42.85s)
--- PASS: TestAccAWSLambdaFunction_expectFilenameAndS3Attributes (12.60s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_basic (73.33s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumEventAgeInSeconds (76.18s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_AliasName (76.71s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_FunctionName_Arn (84.84s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunction (85.35s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunctionEventInvokeConfig (86.60s)
--- PASS: TestAccAWSLambdaFunction_concurrency (88.31s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_Latest (90.82s)
--- PASS: TestAccAWSLambdaFunction_disappears (97.33s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Remove (98.17s)
--- PASS: TestAccAWSLambdaFunction_basic (98.50s)
--- SKIP: TestAccAWSLambdaFunction_imageConfig (1.22s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Swap (107.79s)
--- PASS: TestAccAWSLambdaFunction_nilDeadLetterConfig (23.52s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnSuccess_Destination (117.21s)
--- PASS: TestAccAWSLambdaFunction_UnpublishedCodeUpdate (131.45s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnFailure_Destination (131.83s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionVersion (132.54s)
--- PASS: TestAccAWSLambdaFunction_versioned (69.79s)
--- PASS: TestAccAWSLambdaFunction_codeSigningConfig (161.41s)
--- PASS: TestAccAWSLambdaFunction_Layers (61.82s)
--- PASS: TestAccAWSLambdaFunction_concurrencyCycle (170.87s)
--- PASS: TestAccAWSLambdaFunction_KmsKeyArn_NoEnvironmentVariables (70.90s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumRetryAttempts (171.89s)
--- PASS: TestAccAWSLambdaFunction_encryptedEnvVariables (103.48s)
--- PASS: TestAccAWSLambdaFunction_disablePublish (101.94s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfigUpdated (101.34s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfig (103.86s)
--- PASS: TestAccAWSLambdaFunction_tracingConfig (94.85s)
--- PASS: TestAccAWSLambdaFunction_versionedUpdate (122.49s)
--- PASS: TestAccAWSLambdaFunction_enablePublish (114.77s)
--- PASS: TestAccAWSLambdaFunction_LayersUpdate (86.74s)
--- PASS: TestAccAWSLambdaFunction_EmptyVpcConfig (45.33s)
--- PASS: TestAccAWSLambdaFunction_envVariables (152.86s)
--- PASS: TestAccAWSLambdaFunction_s3 (46.14s)
--- PASS: TestAccAWSLambdaFunction_s3Update_unversioned (50.03s)
--- PASS: TestAccAWSLambdaFunction_localUpdate (57.83s)
--- PASS: TestAccAWSLambdaFunction_localUpdate_nameOnly (59.56s)
--- PASS: TestAccAWSLambdaFunction_s3Update_basic (59.65s)
--- PASS: TestAccAWSLambdaFunction_tags (67.71s)
--- PASS: TestAccAWSLambdaFunction_runtimes (300.59s)
--- PASS: TestAccAWSLambdaFunction_VPC_withInvocation (525.24s)
--- PASS: TestAccAWSLambdaFunction_VpcConfig_ProperIamDependencies (596.92s)
--- PASS: TestAccAWSLambdaFunction_VPCRemoval (690.81s)
--- PASS: TestAccAWSLambdaFunction_FileSystemConfig (1923.37s)
--- PASS: TestAccAWSLambdaFunction_VPCUpdate (2035.16s)

--- FAIL: TestAccAWSLambdaFunction_VPC (59.66s) --- in TC
--- PASS: TestAccAWSLambdaFunction_VPC (477.77s) -- local

@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/lambda Issues and PRs that pertain to the lambda service. labels Dec 2, 2020
@anGie44 anGie44 added crash Results from or addresses a Terraform crash or kernel panic. bug Addresses a defect in current functionality. labels Dec 2, 2020
@anGie44 anGie44 marked this pull request as ready for review December 2, 2020 15:55
@anGie44 anGie44 requested a review from a team as a code owner December 2, 2020 15:55
@anGie44 anGie44 changed the title r/lambda_funcation: update lambda package type check to prevent panic r/lambda_function: update lambda package type check to prevent panic Dec 3, 2020
@gdavison gdavison self-assigned this Jan 7, 2021
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunction (46.02s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_AliasName (58.61s)
--- PASS: TestAccAWSLambdaFunction_disappears (84.36s)
--- PASS: TestAccAWSLambdaFunction_expectFilenameAndS3Attributes (37.82s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunctionEventInvokeConfig (86.82s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionVersion (90.47s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_basic (90.51s)
--- PASS: TestAccAWSLambdaFunction_basic (91.59s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_Latest (92.51s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionName_Arn (93.43s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_FunctionName_Arn (94.54s)
--- PASS: TestAccAWSLambdaFunction_nilDeadLetterConfig (27.36s)
--- SKIP: TestAccAWSLambdaFunction_imageConfig (0.85s)
--- PASS: TestAccAWSLambdaFunction_UnpublishedCodeUpdate (126.48s)
--- PASS: TestAccAWSLambdaFunction_concurrency (128.04s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Remove (129.19s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumEventAgeInSeconds (129.12s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Swap (130.97s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnSuccess_Destination (138.07s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnFailure_Destination (151.96s)
--- PASS: TestAccAWSLambdaFunction_versioned (80.02s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumRetryAttempts (166.25s)
--- PASS: TestAccAWSLambdaFunction_concurrencyCycle (169.78s)
--- PASS: TestAccAWSLambdaFunction_codeSigningConfig (169.79s)
--- PASS: TestAccAWSLambdaFunction_Layers (70.65s)
--- PASS: TestAccAWSLambdaFunction_KmsKeyArn_NoEnvironmentVariables (72.96s)
--- PASS: TestAccAWSLambdaFunction_encryptedEnvVariables (114.30s)
--- PASS: TestAccAWSLambdaFunction_disablePublish (109.09s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfig (113.00s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfigUpdated (112.72s)
--- PASS: TestAccAWSLambdaFunction_s3 (52.39s)
--- PASS: TestAccAWSLambdaFunction_tracingConfig (99.94s)
--- PASS: TestAccAWSLambdaFunction_enablePublish (132.53s)
--- PASS: TestAccAWSLambdaFunction_versionedUpdate (138.02s)
--- PASS: TestAccAWSLambdaFunction_EmptyVpcConfig (59.61s)
--- PASS: TestAccAWSLambdaFunction_LayersUpdate (101.43s)
--- PASS: TestAccAWSLambdaFunction_envVariables (172.38s)
--- PASS: TestAccAWSLambdaFunction_localUpdate (66.20s)
--- PASS: TestAccAWSLambdaFunction_s3Update_basic (50.77s)
--- PASS: TestAccAWSLambdaFunction_localUpdate_nameOnly (57.49s)
--- PASS: TestAccAWSLambdaFunction_s3Update_unversioned (59.05s)
--- PASS: TestAccAWSLambdaFunction_tags (68.42s)
--- PASS: TestAccAWSLambdaFunction_runtimes (280.30s)
--- PASS: TestAccAWSLambdaFunction_VpcConfig_ProperIamDependencies (423.00s)
--- PASS: TestAccAWSLambdaFunction_VPCRemoval (610.19s)
--- PASS: TestAccAWSLambdaFunction_VPC_withInvocation (762.52s)
--- PASS: TestAccAWSLambdaFunction_VPC (785.24s)
--- PASS: TestAccAWSLambdaFunction_VPCUpdate (1002.80s)
--- PASS: TestAccAWSLambdaFunction_FileSystemConfig (2033.43s)

@anGie44 anGie44 added this to the v3.25.0 milestone Jan 19, 2021
@anGie44 anGie44 merged commit 027fd40 into master Jan 19, 2021
@anGie44 anGie44 deleted the b-lambda-code-signing-read branch January 19, 2021 20:39
anGie44 added a commit that referenced this pull request Jan 19, 2021
@ghost
Copy link

ghost commented Jan 22, 2021

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Feb 19, 2021

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 as resolved and limited conversation to collaborators Feb 19, 2021
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. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release v3.19.0 crashes on Localstack
2 participants