From b9f3c86e74365ae31c19aa8119f8122cc244a079 Mon Sep 17 00:00:00 2001 From: FloRul Date: Mon, 12 Feb 2024 16:39:42 -0500 Subject: [PATCH] Update source_arn in lambda_integration module --- terraform/modules/api_gateway/lambda_integration/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/api_gateway/lambda_integration/main.tf b/terraform/modules/api_gateway/lambda_integration/main.tf index 707ef59..579fcba 100644 --- a/terraform/modules/api_gateway/lambda_integration/main.tf +++ b/terraform/modules/api_gateway/lambda_integration/main.tf @@ -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" {}