We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed1f7b commit 52ab70cCopy full SHA for 52ab70c
terraform/api_gateway.tf
@@ -190,6 +190,11 @@ resource "aws_api_gateway_deployment" "api_deployment" {
190
rest_api_id = aws_api_gateway_rest_api.api.id
191
}
192
193
+resource "aws_cloudwatch_log_group" "api_gateway_logs" {
194
+ name = "/aws/api-gateway/${aws_api_gateway_rest_api.api.id}"
195
+ retention_in_days = 7
196
+}
197
+
198
resource "aws_api_gateway_stage" "api_stage" {
199
deployment_id = aws_api_gateway_deployment.api_deployment.id
200
0 commit comments