Commit ffd9ea64 authored by Chris Merrett's avatar Chris Merrett

Fixed handler mistake and removed CW schedule env var

parent a0f19172
Pipeline #959 passed with stage
in 6 seconds
......@@ -101,7 +101,7 @@ resource "aws_lambda_function" "main" {
filename = "${path.module}/lambda_ebs_snapshots.zip"
function_name = "lambda_ebs_snapshots"
role = "${aws_iam_role.main.arn}"
handler = "lambda_function.lambda_handler"
handler = "lambda_ebs_snapshots.lambda_handler"
timeout = "300"
runtime = "python2.7"
source_code_hash = "${base64sha256(file("${path.module}/lambda_ebs_snapshots.zip"))}"
......@@ -113,7 +113,6 @@ resource "aws_lambda_function" "main" {
SNAPSHOT_TAG = "${var.snapshot_tag}"
RETENTION_TAG = "${var.retention_tag}"
DELETE_TAG = "${var.delete_tag}"
CLOUDWATCH_SCHEDULE = "${var.cloudwatch_schedule}"
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment