Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/514d6e7db84b84a6a2990114146ad333 to your computer and use it in GitHub Desktop.
Save nivleshc/514d6e7db84b84a6a2990114146ad333 to your computer and use it in GitHub Desktop.
This gist contains code from the file api_gateway.tf which is part of the blog-photo-location-map repository.
resource "aws_lambda_permission" "apigw_invoke_fetch_object_lambda" {
statement_id = "AllowAPIGatewayInvoke"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.fetch_object_lambda.function_name
principal = "apigateway.amazonaws.com"
source_arn = "${aws_api_gateway_rest_api.photo_location_map.execution_arn}/*/*"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment