We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b23b2 commit 833d29dCopy full SHA for 833d29d
lambda-warmer/main.tf
@@ -93,7 +93,7 @@ resource "aws_iam_role_policy" "warmer_lambda_invoke_policy" {
93
"lambda:InvokeFunction"
94
]
95
Effect = "Allow"
96
- Resource = "arn:aws:lambda:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:function:${var.function_to_warm}"
+ Resource = "arn:aws:lambda:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:function:${var.function_to_warm}"
97
},
98
99
})
0 commit comments