Changed function_name reference (#12193)

This commit is contained in:
Viktor Voltaire 2017-02-28 22:31:33 +01:00 committed by Paul Stack
parent 03a8e32fed
commit 2a34bfa23e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ Creates a Lambda permission to allow external sources invoking the Lambda functi
resource "aws_lambda_permission" "allow_cloudwatch" { resource "aws_lambda_permission" "allow_cloudwatch" {
statement_id = "AllowExecutionFromCloudWatch" statement_id = "AllowExecutionFromCloudWatch"
action = "lambda:InvokeFunction" action = "lambda:InvokeFunction"
function_name = "${aws_lambda_function.test_lambda.name}" function_name = "${aws_lambda_function.test_lambda.function_name}"
principal = "events.amazonaws.com" principal = "events.amazonaws.com"
source_account = "111122223333" source_account = "111122223333"
source_arn = "arn:aws:events:eu-west-1:111122223333:rule/RunDaily" source_arn = "arn:aws:events:eu-west-1:111122223333:rule/RunDaily"