feat: Add variable to allow disabling the package timestamp trigger #233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This adds a variable (default false) for triggering an update of the underlying lambda based on the timestamp of the underlying file
Motivation and Context
This fixes the case where this module is used and automatically planned/applied from CI, where the source is freshly copied/cloned - currently, the module will always attempt to update the lambda in this case!
Fixes #232
Breaking Changes
This does bump the underlyingterraform-aws-modules/terraform-aws-lambda
version from3.2.0
->6.7.0
(the minimum that supports this option) - but the only breaking changes I can see from that are that onlyterraform >= 1
is supported, and it requires a slightly newer AWS providerThis originally bumped the version of the lambda module from
3.2.0
->6.7.0
- but master has changed to6.8.0
!How Has This Been Tested?
I have used this in my fork of the repo to deploy a few times within my CI pipelines
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request