Changed function_name reference (#12193)
This commit is contained in:
parent
03a8e32fed
commit
2a34bfa23e
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue