From 92b7e7a9e9565867aef2c4d1e4eaba22e9e07488 Mon Sep 17 00:00:00 2001 From: thanhz Date: Fri, 15 Sep 2023 16:10:20 +0100 Subject: [PATCH] properly restrict api gateway --- .../api_gateway/reference_generator_rest_policy.json.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/templates/api_gateway/reference_generator_rest_policy.json.tpl b/terraform/templates/api_gateway/reference_generator_rest_policy.json.tpl index 154efa8..820a591 100644 --- a/terraform/templates/api_gateway/reference_generator_rest_policy.json.tpl +++ b/terraform/templates/api_gateway/reference_generator_rest_policy.json.tpl @@ -10,7 +10,7 @@ ] }, "Action":"execute-api:Invoke", - "Resource":"${api_gateway_arn}" + "Resource":"${api_gateway_arn}/*" } ] }