Created
April 15, 2020 06:35
-
-
Save wshihadeh/56ff8fd12a8382638bd96d08304d158e to your computer and use it in GitHub Desktop.
aws_lambda_function
This file contains hidden or 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" "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