Skip to content

Commit

Permalink
fix: Upgraded version of Lambda module (fix #84)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Jun 10, 2020
1 parent 4293eac commit 2396f8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "aws_sns_topic_subscription" "sns_notify_slack" {

module "lambda" {
source = "terraform-aws-modules/lambda/aws"
version = "1.3.0"
version = "1.5.0"

create = var.create

Expand All @@ -79,6 +79,9 @@ module "lambda" {
kms_key_arn = var.kms_key_arn
reserved_concurrent_executions = var.reserved_concurrent_executions

// If publish is disabled, there will be "Error adding new Lambda Permission for notify_slack: InvalidParameterValueException: We currently do not support adding policies for $LATEST."
publish = true

environment_variables = {
SLACK_WEBHOOK_URL = var.slack_webhook_url
SLACK_CHANNEL = var.slack_channel
Expand Down

0 comments on commit 2396f8b

Please sign in to comment.