Commit 50b32421 authored by Adrian Horrocks's avatar Adrian Horrocks

adding source arn to lambda permission

parent e702467e
......@@ -43,5 +43,6 @@ resource "aws_lambda_permission" "allow_cloudwatch" {
statement_id = "AllowExecutionFromCloudWatch"
action = "lambda:InvokeFunction"
function_name = "${aws_lambda_function.packer_janitor.arn}"
source_arn = "${aws_cloudwatch_event_rule.packer_janitor.arn}"
principal = "events.amazonaws.com"
}
\ No newline at end of file
}
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