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

feat: Add recreate_missing_package parameter #181

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Jul 16, 2021

Description

Add recreate_missing_package parameter in addition to TF_RECREATE_MISSING_LAMBDA_PACKAGE environment variable.

Motivation and Context

People can forget defining the TF_RECREATE_MISSING_LAMBDA_PACKAGE environment variable to false before running terraform plan or terraform apply, leading to undesired diff.
Adding this as a parameter, we can make sure it is always defined when desired.

Breaking Changes

N/A

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects

When the TF_RECREATE_MISSING_LAMBDA_PACKAGE environment variable is set to true or false, it takes precedence over the new recreate_missing_package parameter which defaults to true.

@pdecat pdecat force-pushed the add_recreate_missing_lambda_package_parameter branch from 2610afe to f5487f1 Compare July 16, 2021 08:44
@pdecat pdecat marked this pull request as ready for review July 16, 2021 08:53
@pdecat pdecat changed the title Add recreate_missing_package parameter feat: Add recreate_missing_package parameter Jul 22, 2021
@pdecat pdecat force-pushed the add_recreate_missing_lambda_package_parameter branch from f5487f1 to 47f5030 Compare July 22, 2021 12:10
@pdecat pdecat force-pushed the add_recreate_missing_lambda_package_parameter branch from ab703f2 to 3a4ea75 Compare August 21, 2021 07:41
…TE_MISSING_LAMBDA_PACKAGE environment variable
@pdecat pdecat force-pushed the add_recreate_missing_lambda_package_parameter branch from 204dd33 to de88158 Compare August 30, 2021 13:34
@antonbabenko
Copy link
Member

One more for today. Is it ready for the final review?

@pdecat
Copy link
Contributor Author

pdecat commented Aug 30, 2021

Yep, ready for review :)

@antonbabenko antonbabenko merged commit 10cfba5 into terraform-aws-modules:master Aug 30, 2021
@pdecat pdecat deleted the add_recreate_missing_lambda_package_parameter branch August 30, 2021 15:36
@antonbabenko
Copy link
Member

Thanks a lot for this fix, too!

v2.16.0 has been just released.

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants