-
-
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
Lambda version updates not reflected in trigger #230
Comments
This commit updates the `aws_sns_topic_subscription` resource to use the `lambda_function_qualified_arn` output for the `endpoint` value. Also bump the `lambda` module to `6.8.0`, which is the latest version that maintains compatability with `aws` v4 provider. Fixes: terraform-aws-modules#230
This commit updates the `aws_sns_topic_subscription` resource to use the `lambda_function_qualified_arn` output for the `endpoint` value. Also bump the `lambda` module to `6.8.0`, which is the latest version that maintains compatability with `aws` v4 provider. Fixes: terraform-aws-modules#230
I went with option 1 above in #231. Testing the changes locally and this correctly results in an update to the SNS trigger on a lambda update :D |
This issue has been resolved in version 6.4.1 🎉 |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
When attempting to update the
slack_channel
that a set of notifications target, I observed that the notifications were still being sent to the "old" channel.Upon reviewing the AWS config, I could see a new version of the lambda had been published. However there was an error on the
triggers
section for the new lambda version as follows:After looking at this module code, I believe the issue is here:
terraform-aws-notify-slack/main.tf
Line 76 in 2e72539
Instead of using the
lambda_function_arn
output, thelambda_function_qualified_arn
1 should be used, as that includes the "current" version.Alternatively, an
alias
could be defined, using thealias
submodule[2] and that alias is then referenced by the trigger.[2] https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/v3.2.0/modules/alias
Versions
Module version [Required]:
~> 6.0
Terraform version:
1.5.7
Provider version(s):
5.63.0
Reproduction Code [Required]
Steps to reproduce the behavior:
slack_channel
set tochannel-a
slack_channel
value tochannel-b
Expected behavior
Notifications should be sent to
#channel-b
Actual behavior
Notification is still sent to
#channel-a
Terminal Output Screenshot(s)
Additional context
The current
terraform-aws-modules/lambda/aws
version (3.2.0
) is 3 years old!!!The latest version is
7.8.1
...The text was updated successfully, but these errors were encountered: