Skip to content

Commit

Permalink
chore: lambda detects source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtempus committed Oct 31, 2023
1 parent d261a27 commit c18c756
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ resource "aws_secretsmanager_secret_version" "github_token_secret_version" {
}

resource "aws_lambda_function" "minecraft_bot" {
function_name = "minecraftBot"
role = aws_iam_role.lambda_role.arn
handler = "minecraftBot.handler" # <FileName without extension>.<Exported function name>
runtime = "nodejs16.x"
filename = "../dist/minecraftBot.zip"
function_name = "minecraftBot"
role = aws_iam_role.lambda_role.arn
handler = "minecraftBot.handler" # <FileName without extension>.<Exported function name>
runtime = "nodejs16.x"
filename = "../dist/minecraftBot.zip"
source_code_hash = filebase64sha256("minecraftBot.zip") # Detect changes to the source
}

resource "aws_iam_role" "lambda_role" {
Expand Down

0 comments on commit c18c756

Please sign in to comment.