Skip to content

Commit

Permalink
Change lambda from go to nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
lzrocha committed Aug 18, 2020
1 parent a59815a commit 5737a7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambda-slack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ resource "aws_lambda_function" "default" {
filename = "${path.module}/slack.zip"
function_name = "slack-notification-healthcheck-${var.topic_name}"
role = aws_iam_role.default[0].arn
handler = "main"
handler = "index.handler"

source_code_hash = filebase64sha256("${path.module}/slack.zip")

runtime = "go1.x"
runtime = "nodejs12.x"

environment {
variables = {
SLACK_WEBHOOK = var.slack_endpoint
UNENCRYPTED_HOOK_URL = var.slack_endpoint
}
}
}
Expand Down
Binary file modified slack.zip
Binary file not shown.

0 comments on commit 5737a7b

Please sign in to comment.