Skip to content

Instantly share code, notes, and snippets.

@mxro

mxro/lambda.tf

Created Feb 20, 2021
Embed
What would you like to do?
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