Skip to content

Commit

Permalink
NOBUG: fix terragrunt (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
cole authored Dec 3, 2021
1 parent 3a85e36 commit d693989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/src/facility.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "aws_api_gateway_method" "writeFacilityMethod" {
// Defines the HTTP PUT /facility API
resource "aws_api_gateway_method" "putFacilityMethod" {
rest_api_id = aws_api_gateway_rest_api.apiLambda.id
resource_id = aws_api_gateway_resource.readResource.id
resource_id = aws_api_gateway_resource.facilityResource.id
http_method = "PUT"
authorization = "NONE"
}
Expand Down Expand Up @@ -90,7 +90,7 @@ resource "aws_api_gateway_integration" "writeFacilityIntegration" {

resource "aws_api_gateway_integration" "putFacilityIntegration" {
rest_api_id = aws_api_gateway_rest_api.apiLambda.id
resource_id = aws_api_gateway_resource.readResource.id
resource_id = aws_api_gateway_resource.facilityResource.id
http_method = aws_api_gateway_method.putFacilityMethod.http_method

integration_http_method = "POST"
Expand All @@ -115,7 +115,7 @@ resource "aws_lambda_permission" "writeFacilityPermission" {
}

resource "aws_lambda_permission" "putFacilityPermission" {
statement_id = "AllowParksDayUseFacilityAPIInvoke"
statement_id = "AllowParksDayUseFacilityAPIInvokePut"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.writeFacilityLambda.function_name
principal = "apigateway.amazonaws.com"
Expand Down

0 comments on commit d693989

Please sign in to comment.