Skip to content

Commit

Permalink
Update source_arn in lambda_integration module
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRul committed Feb 12, 2024
1 parent 5545f9b commit b9f3c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/api_gateway/lambda_integration/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "aws_lambda_permission" "lambda_permission" {
function_name = var.lambda_function_name
principal = "apigateway.amazonaws.com"

source_arn = "arn:aws:execute-api:${var.aws_region}:${data.aws_caller_identity.current.account_id}:${var.api_gateway_rest_api_id}/*/${aws_api_gateway_method.api_gateway_method.http_method}${aws_api_gateway_resource.api_gateway_resource.path}"
source_arn = "arn:aws:execute-api:${var.aws_region}:${data.aws_caller_identity.current.account_id}:${var.api_gateway_rest_api_id}/*/${aws_api_gateway_method.api_gateway_method.http_method}${aws_api_gateway_resource.this.path}"
}

data "aws_caller_identity" "current" {}

0 comments on commit b9f3c86

Please sign in to comment.