Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created April 15, 2020 06:35
Show Gist options
  • Save wshihadeh/56ff8fd12a8382638bd96d08304d158e to your computer and use it in GitHub Desktop.
Save wshihadeh/56ff8fd12a8382638bd96d08304d158e to your computer and use it in GitHub Desktop.
aws_lambda_function
resource "aws_lambda_function" "stop_ec2_lambda" {
filename = "ec2_lambda_handler.zip"
function_name = "stopEC2Lambda"
role = "${aws_iam_role.stop_start_ec2_role.arn}"
handler = "ec2_lambda_handler.stop"
source_code_hash = "${filebase64sha256("ec2_lambda_handler.zip")}"
runtime = "python3.7"
memory_size = "250"
timeout = "60"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment