Skip to content

Commit

Permalink
Merge pull request #6 from DNXLabs/feature/add-awsaccountid
Browse files Browse the repository at this point in the history
Add aws account id to slack message
  • Loading branch information
lgothelipe authored Jul 19, 2022
2 parents bee30bd + 9ad297c commit 6244046
Show file tree
Hide file tree
Showing 2 changed files 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
Binary file modified slack.zip
Binary file not shown.

0 comments on commit 6244046

Please sign in to comment.