From fd895cda5947b532482b27f5cd8eac9d7739fc43 Mon Sep 17 00:00:00 2001 From: Vladimir Savenkov Date: Mon, 6 Nov 2023 20:07:03 +0100 Subject: [PATCH] fixed route key --- parts/deploy-api-gateway/go/api_gateway.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/deploy-api-gateway/go/api_gateway.tf b/parts/deploy-api-gateway/go/api_gateway.tf index d38d966..bfdd06b 100644 --- a/parts/deploy-api-gateway/go/api_gateway.tf +++ b/parts/deploy-api-gateway/go/api_gateway.tf @@ -65,7 +65,7 @@ resource "aws_apigatewayv2_integration" "hello_world_lambda" { // specify route that will be used to invoke lambda function resource "aws_apigatewayv2_route" "hello_world_lambda" { api_id = aws_apigatewayv2_api.simple_api.id - route_key = "api/v1/hello" + route_key = "GET /api/v1/hello" target = "integrations/${aws_apigatewayv2_integration.hello_world_lambda.id}" }