Skip to content

Commit 3d81d29

Browse files
committed
Fixed integration for GET requests
1 parent 1689af9 commit 3d81d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api_gateway.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ resource "aws_api_gateway_integration" "integration" {
2020
count = length(var.http_methods)
2121
rest_api_id = aws_api_gateway_rest_api.api.id
2222
resource_id = aws_api_gateway_resource.resource.id
23-
integration_http_method = var.http_methods[count.index]
24-
http_method = var.http_methods[count.index]
23+
integration_http_method = "POST"
24+
http_method = aws_api_gateway_method.method[count.index].http_method
2525
type = "AWS_PROXY"
2626
uri = aws_lambda_function.lambda.invoke_arn
2727
}

0 commit comments

Comments
 (0)