Skip to content

Commit

Permalink
Update lambda name
Browse files Browse the repository at this point in the history
  • Loading branch information
lgothelipe committed Jul 19, 2022
1 parent 0d174fe commit 9ad297c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda-slack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "aws_lambda_function" "default" {
count = var.slack_endpoint == "" ? 0 : 1

filename = "${path.module}/slack.zip"
function_name = "slack-cloudwatch-notification-${random_string.lambda_suffix.result}"
function_name = "slack-cloudwatch-notification-${var.sns_topic_name != "" ? var.sns_topic_name : random_string.lambda_suffix.result}"
role = aws_iam_role.default[0].arn
handler = "index.handler"

Expand Down

0 comments on commit 9ad297c

Please sign in to comment.