Currently there's no way on the HttpApi or HttpStage construct to enable access logging as specified via https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-accesslogsettings.html.
This is pretty easy to setup via sam but there's no equivalent atm for cdk.
Use Case
Enable access logs for HttpApi
Proposed Solution
- Implement AccessLogSettings on HttpStage
- Add
logging prop to HttpApi which enables logging for all routes
I also think when the above is added to HttpApi that it should create its own log group and the permissions necessary for the HttpApi to write to it.
Other
This is a 🚀 Feature Request
Currently there's no way on the HttpApi or HttpStage construct to enable access logging as specified via https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-accesslogsettings.html.
This is pretty easy to setup via sam but there's no equivalent atm for cdk.
Use Case
Enable access logs for HttpApi
Proposed Solution
loggingprop to HttpApi which enables logging for all routesI also think when the above is added to HttpApi that it should create its own log group and the permissions necessary for the HttpApi to write to it.
Other
This is a 🚀 Feature Request