terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
911 stars 683 forks source link

fix: Performs plan-phase runtime check only if building package #359

Closed lorengordon closed 1 year ago

lorengordon commented 1 year ago

pip_requirements_step and npm_requirements_step are executed even when there is no requirements file, and so there is no package to build. The runtime check should occur only when the package is being built.

Motivation and Context

See https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/358#issuecomment-1285685758

Breaking Changes

The opposite! It fixes a breaking change.

How Has This Been Tested?

antonbabenko commented 1 year ago

This PR is included in version 4.1.3 :tada:

lorengordon commented 1 year ago

@guyzyl Are you able to confirm that the current master branch or v4.1.3 fix the error you reported in #358?

guyzyl commented 1 year ago

@lorengordon works perfectly now πŸ‘

github-actions[bot] commented 1 year ago

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.