Skip to content

Commit

Permalink
fix: api gateways logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsterner30 committed Apr 11, 2024
1 parent 6e082e5 commit a9f839a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions iac/modules/app/assemblerTriggerLambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ resource "aws_api_gateway_resource" "proxy" {
path_part = "{proxy+}"
}

resource "aws_api_gateway_method_settings" "logging" {
rest_api_id = aws_api_gateway_rest_api.WebHookDomain.id
stage_name = var.env
method_path = "*/*"

settings {
metrics_enabled = true
logging_level = "INFO"
}
}

resource "aws_api_gateway_method" "proxy_method" {
rest_api_id = aws_api_gateway_rest_api.WebHookDomain.id
resource_id = aws_api_gateway_resource.proxy.id
Expand Down

0 comments on commit a9f839a

Please sign in to comment.