From a2ae7b719c949ae629d5334278fd42a6da9f6418 Mon Sep 17 00:00:00 2001 From: Daniel Sotirhos Date: Fri, 2 Aug 2024 11:00:29 -0700 Subject: [PATCH] fixup! Fix: Service responses are not compressed (#6360) --- src/azul/terraform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/azul/terraform.py b/src/azul/terraform.py index 99c278f5e8..13cf5c070b 100644 --- a/src/azul/terraform.py +++ b/src/azul/terraform.py @@ -798,6 +798,8 @@ def tf_config(self, app_name): # specification lets us avoid maintaining a complicated trigger # dependency between Terraform resources. # + rest_api = resources['aws_api_gateway_rest_api'][app_name] + assert 'minimum_compression_size' not in rest_api, rest_api.keys() openapi_spec = json.loads(locals[app_name]) key = 'x-amazon-apigateway-minimum-compression-size' openapi_spec[key] = config.minimum_compression_size