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!

gdacunda pushed a commit to zype/terraform-aws-notify-slack that referenced this pull request Oct 3, 2024
…raform-aws-notify-slack into INF-2667

* 'master' of https://github.com/terraform-aws-modules/terraform-aws-notify-slack:
  chore(release): version 6.5.0 [skip ci]
  feat: Add variable to allow disabling the package timestamp trigger (terraform-aws-modules#233)
  chore(release): version 6.4.1 [skip ci]
  fix: Update `aws_sns_topic_subscription` endpoint to use qualified arn (terraform-aws-modules#231)
  chore(release): version 6.4.0 [skip ci]
  feat: Improved AWS backup notification readability (terraform-aws-modules#222)
  chore(release): version 6.3.0 [skip ci]
  feat: Update Python lambda runtime from `3.8` to `3.11` (terraform-aws-modules#225)
  chore(release): version 6.2.0 [skip ci]
  feat: Added architecture variable (terraform-aws-modules#224)
  chore(release): version 6.1.2 [skip ci]
  fix: Correct assume role permissions for SNS service to assume IAM role (terraform-aws-modules#220)
  chore(release): version 6.1.1 [skip ci]
  fix: Update CI workflow versions to remove deprecated runtime warnings (terraform-aws-modules#218)
Copy link

github-actions bot commented Oct 4, 2024

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 Oct 4, 2024
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.

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