Commit 01fd8c6b authored by Adrian Horrocks's avatar Adrian Horrocks

Merge branch 'cloudwatch_events_lambda_attachment_fix' into 'master'

adding source arn to lambda permission

See merge request steamhaus/tf_mod_packer_janitor!3
parents e702467e 50b32421
......@@ -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