Skip to content

Commit 651dce7

Browse files
committed
fix: log name, remove routes which should be created by computing
1 parent c0e7874 commit 651dce7

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

api_gateway_outputs.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ output "api_gw_gateway_stage" {
2222
}
2323
}
2424

25-
# output "api_gw_routes_to_be_integrated" {
26-
27-
# }
25+
output "api_gw_integration_proxy_to_alb" {
26+
description = "API Gateway Integration Proxy to ALB"
27+
value = {
28+
"api_id" : aws_apigatewayv2_integration.proxy_to_alb.api_id
29+
"description" : aws_apigatewayv2_integration.proxy_to_alb.description
30+
"id" : aws_apigatewayv2_integration.proxy_to_alb.id
31+
"integration_type" : aws_apigatewayv2_integration.proxy_to_alb.integration_type
32+
}
33+
}

api_gateway_routes.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,6 @@ resource "aws_apigatewayv2_route" "debug_route" {
55
target = "integrations/${aws_apigatewayv2_integration.debug_integration.id}"
66
}
77

8-
9-
resource "aws_apigatewayv2_route" "client_identification" {
10-
api_id = aws_apigatewayv2_api.main.id
11-
route_key = "POST /identification/clients/identification"
12-
13-
// Identification Lambda integration
14-
}
15-
16-
resource "aws_apigatewayv2_route" "order_checkout_and_listing" {
17-
api_id = aws_apigatewayv2_api.main.id
18-
route_key = "ANY /order/orders" // due to Servlet Filter urlPatterns not supporting specific HTTP methods
19-
20-
// Client Lambda Authorizer authorization
21-
target = "integrations/${aws_apigatewayv2_integration.proxy_to_alb.id}"
22-
}
23-
24-
resource "aws_apigatewayv2_route" "order_confirmation" {
25-
api_id = aws_apigatewayv2_api.main.id
26-
route_key = "POST /payment/payments/initialize"
27-
28-
// Client Lambda Authorizer authorization
29-
target = "integrations/${aws_apigatewayv2_integration.proxy_to_alb.id}"
30-
}
31-
328
resource "aws_apigatewayv2_route" "forward_to_alb_route" {
339
api_id = aws_apigatewayv2_api.main.id
3410
route_key = "ANY /{proxy+}"

cloudwatch.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "aws_flow_log" "vpc" {
2828

2929
#tfsec:ignore:aws-cloudwatch-log-group-customer-key
3030
resource "aws_cloudwatch_log_group" "vpc_flow_log" {
31-
name = "/aws/apigateway/SOAT-TC_VPC_Flow_Logs"
31+
name = "/aws/vpc/SOAT-TC_VPC_Flow_Logs"
3232
retention_in_days = 30
3333

3434
tags = {

0 commit comments

Comments
 (0)