Created
February 20, 2021 21:22
-
-
Save mxro/bde3d2e9b47db04ffe6b06b8d7332a05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_lambda_function" "main" { | |
function_name = var.lambda_name | |
filename = data.archive_file.empty_lambda.output_path | |
handler = "lambda.handler" | |
runtime = "nodejs12.x" | |
memory_size = 2048 | |
timeout = 900 | |
role = aws_iam_role.lambda_exec.arn | |
lifecycle { | |
ignore_changes = [ | |
filename, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment