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 variable to allow disabling the package timestamp trigger #233

Conversation

jpetrucciani
Copy link
Contributor

@jpetrucciani jpetrucciani commented Sep 3, 2024

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 underlying terraform-aws-modules/terraform-aws-lambda version from 3.2.0 -> 6.7.0 (the minimum that supports this option) - but the only breaking changes I can see from that are that only terraform >= 1 is supported, and it requires a slightly newer AWS provider
This originally bumped the version of the lambda module from 3.2.0 -> 6.7.0 - but master has changed to 6.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

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@jpetrucciani jpetrucciani changed the title feat: add variable to allow disabling the package timestamp trigger feat: Add variable to allow disabling the package timestamp trigger Sep 3, 2024
@jpetrucciani
Copy link
Contributor Author

I will rebase and fix this - this simplifies my change as well, since the latest commit bumps the lambda version to nearly the same thing I had!

@jpetrucciani jpetrucciani force-pushed the disable_trigger_on_package_timestamp branch from ec94dba to 0765d88 Compare September 3, 2024 22:39
@jpetrucciani
Copy link
Contributor Author

Should be good for review now!

@antonbabenko antonbabenko merged commit b3016e2 into terraform-aws-modules:master Sep 3, 2024
8 checks passed
antonbabenko pushed a commit that referenced this pull request Sep 3, 2024
## [6.5.0](v6.4.1...v6.5.0) (2024-09-03)

### Features

* Add variable to allow disabling the package timestamp trigger ([#233](#233)) ([b3016e2](b3016e2))
@antonbabenko
Copy link
Member

This PR is included in version 6.5.0 🎉

@jpetrucciani jpetrucciani deleted the disable_trigger_on_package_timestamp branch September 3, 2024 23:43
@jpetrucciani
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trigger mis-detects change to null_resource 'archive'
2 participants