Skip to content

Commit

Permalink
fix: log name, remove routes which should be created by computing
Browse files Browse the repository at this point in the history
  • Loading branch information
g-otn committed Mar 28, 2024
1 parent c0e7874 commit 651dce7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
12 changes: 9 additions & 3 deletions api_gateway_outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ output "api_gw_gateway_stage" {
}
}

# output "api_gw_routes_to_be_integrated" {

# }
output "api_gw_integration_proxy_to_alb" {
description = "API Gateway Integration Proxy to ALB"
value = {
"api_id" : aws_apigatewayv2_integration.proxy_to_alb.api_id
"description" : aws_apigatewayv2_integration.proxy_to_alb.description
"id" : aws_apigatewayv2_integration.proxy_to_alb.id
"integration_type" : aws_apigatewayv2_integration.proxy_to_alb.integration_type
}
}
24 changes: 0 additions & 24 deletions api_gateway_routes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,6 @@ resource "aws_apigatewayv2_route" "debug_route" {
target = "integrations/${aws_apigatewayv2_integration.debug_integration.id}"
}


resource "aws_apigatewayv2_route" "client_identification" {
api_id = aws_apigatewayv2_api.main.id
route_key = "POST /identification/clients/identification"

// Identification Lambda integration
}

resource "aws_apigatewayv2_route" "order_checkout_and_listing" {
api_id = aws_apigatewayv2_api.main.id
route_key = "ANY /order/orders" // due to Servlet Filter urlPatterns not supporting specific HTTP methods

// Client Lambda Authorizer authorization
target = "integrations/${aws_apigatewayv2_integration.proxy_to_alb.id}"
}

resource "aws_apigatewayv2_route" "order_confirmation" {
api_id = aws_apigatewayv2_api.main.id
route_key = "POST /payment/payments/initialize"

// Client Lambda Authorizer authorization
target = "integrations/${aws_apigatewayv2_integration.proxy_to_alb.id}"
}

resource "aws_apigatewayv2_route" "forward_to_alb_route" {
api_id = aws_apigatewayv2_api.main.id
route_key = "ANY /{proxy+}"
Expand Down
2 changes: 1 addition & 1 deletion cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "aws_flow_log" "vpc" {

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

tags = {
Expand Down

0 comments on commit 651dce7

Please sign in to comment.