API Gateway stages for V1 and V2 should have access logging enabled
API Gateway stages should have access log settings block configured to track all access to a particular stage. This should be applied to both v1 and v2 gateway stages.
Impact
Recommended Actions
Follow the appropriate remediation steps below to resolve the issue.
Enable logging for API Gateway stages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AWSTemplateFormatVersion:"2010-09-09"Description:Good Example of ApiGatewayResources:GoodApi:Type:AWS::ApiGatewayV2::ApiGoodApiStage:Type:AWS::ApiGatewayV2::StageProperties:AccessLogSettings:DestinationArn:gateway-loggingFormat:jsonApiId:!Ref GoodApiStageName:GoodApiStage