-
-
Notifications
You must be signed in to change notification settings - Fork 343
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: Update lambda module and bump Terraform/AWS provider versions #151
feat: Update lambda module and bump Terraform/AWS provider versions #151
Conversation
- Update underlying lambda module to latest v2.x which removes `this_` prefix - Bump min supported Terraform and AWS provider versions to match that of the lambda module (least common denominator) - Add new workflow file stub for unit tests. This is so that on the next PR the workflow file will be run (they won't run on the first PR introducing them due to security concerns protected by GitHub). This will be used to add in some unit tests for the actual lambda function python code - Remove the zip file and add a pattern match to the gitignore file - no longer required - Update pre-commit to latest
@@ -109,7 +108,7 @@ module "lambda" { | |||
# the value of presense of KMS. Famous "computed values in count" bug... | |||
attach_cloudwatch_logs_policy = false | |||
attach_policy_json = true | |||
policy_json = element(concat(data.aws_iam_policy_document.lambda[*].json, [""]), 0) | |||
policy_json = try(data.aws_iam_policy_document.lambda[0].json, "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try()
🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my best friend ... try()
🤣
# [4.20.0](v4.19.0...v4.20.0) (2021-12-09) ### Features * Update lambda module and bump Terraform/AWS provider versions ([#151](#151)) ([0a1fae8](0a1fae8))
This PR is included in version 4.20.0 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking changes should have major version number increments.
@@ -1,4 +1,4 @@ | |||
output "this_slack_topic_arn" { | |||
output "slack_topic_arn" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all breaking changes. You should increase the major version number.
@llamahunter what breaking change are you seeing? |
All the names of the outputs changed. Any terraform using this module that referenced those outputs broke with this change. |
there was one output changed |
It's destructive to existing builds. They all break when using |
@bryantbiggs Unfortunately, that isn't the whole story. The breaking change was the module output name change. For example, these errors showed up after running with 4.20.0 + Can you at least add a note about renamed variables to the changelog? There's nothing in the changelog that indicates outputs were renamed. |
Technically, per SemVer, they should publish a new 4.x change that rolls back the non-backwards compatible output name change, and label all intervening 4.x builds from 4.20.0 until the fix version as 'dangerous' to use due to the backwards incompatibility. |
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. |
Description
this_
prefixMotivation and Context
Breaking Changes
How Has This Been Tested?
examples/*
projectsexamples/notify-slack-simple