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: Fixed opposite refresh_alias behavior in modules/alias #372

Closed micksatana closed 1 year ago

micksatana commented 1 year ago

Description

ignore_changes = [function_version] lifecycle should be in the no_refresh resource. This PR will solve #281

Fixes #281

Motivation and Context

Its behavior is currently opposite. refresh_alias = true should refresh new version to the alias.

Breaking Changes

If anyone uses opposite refresh_alias = false as a workaround to refresh version, one needs to update to true and vice versa.

How Has This Been Tested?

antonbabenko commented 1 year ago

This PR is included in version 4.7.1 :tada:

ryandeivert commented 1 year ago

hi all -- while I greatly appreciate this fix (it's confused me for a long time), I'm concern that it has semi-silently landed in a patch fix. IMO, this is a breaking change, and even using the least egregious upgrade pattern (~> syntax) here would even adopted this breaking change.

I'm curious if there is a way to limit releasing breaking changes to (at a minimum) the minor version releases, even when it is a known-bug fix. unfortunately, this caused numerous functions to unexpectedly stop publishing, and I bet it is also affecting many many others without them noticing 😞

jguttman94 commented 1 year ago

agreed! I suspect that this issue (https://github.com/terraform-aws-modules/terraform-aws-lambda/issues/383) is a result of this change.

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.