Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
fix: Allow apigateways outside of eu-central-1
Browse files Browse the repository at this point in the history
Based on #64
  • Loading branch information
timo-reymann committed Dec 4, 2023
1 parent ce0f38d commit 11efb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apigateway_http.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ resource "aws_lambda_permission" "apigateway" {
statement_id = "AllowAPIGatewayInvoke"
action = "lambda:InvokeFunction"
principal = "apigateway.amazonaws.com"
source_arn = "arn:aws:execute-api:eu-central-1:${data.aws_caller_identity.this.account_id}:${var.api_gateway_id}/*/*"
source_arn = "arn:aws:execute-api:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:${var.api_gateway_id}/*/*"
function_name = aws_lambda_function.this.function_name
}

0 comments on commit 11efb67

Please sign in to comment.