Skip to content

Commit 1622b24

Browse files
author
Kent Brady
authored
Merge pull request #4 from byu-oit/fix-permissions
fix api gateway to lambda permissions
2 parents 21ee3d5 + 73d7aeb commit 1622b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ resource "aws_lambda_permission" "apigw_lambda" {
146146
action = "lambda:InvokeFunction"
147147
function_name = aws_lambda_function.lambda.function_name
148148
principal = "apigateway.amazonaws.com"
149-
source_arn = aws_api_gateway_rest_api.api.execution_arn
149+
source_arn = "${aws_api_gateway_rest_api.api.execution_arn}/*"
150150
depends_on = [aws_iam_role_policy_attachment.lambda_logs, aws_cloudwatch_log_group.logs]
151151
}
152152

0 commit comments

Comments
 (0)