Skip to content

Commit 912a633

Browse files
authored
fix: disable cache on API gateway stage (#8)
This was breaking the `/{proxy+}` integration as it was treating all requests as the same path.
1 parent d383ada commit 912a633

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

infra/modules/api-gateway/api-gateway.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ resource "aws_api_gateway_deployment" "api_deployment" {
2727
}
2828

2929
resource "aws_api_gateway_stage" "api_stage" {
30+
# checkov:skip=CKV2_AWS_29:WAF not needed for non-prod use
3031
deployment_id = aws_api_gateway_deployment.api_deployment.id
3132
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
3233
stage_name = "dev"
@@ -66,9 +67,7 @@ resource "aws_api_gateway_method_settings" "api_gateway_method_settings" {
6667
method_path = "*/*"
6768

6869
settings {
69-
caching_enabled = true
70-
cache_ttl_in_seconds = "3600" # 1 hour
71-
70+
caching_enabled = false
7271
metrics_enabled = true
7372
logging_level = "ERROR"
7473
}

0 commit comments

Comments
 (0)