API Gateway execution logging should be enabled for WebSocket APIs

이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Description

This control evaluates whether execution logging is enabled for all stages of an Amazon API Gateway WebSocket API. The control will pass only if the following conditions are true.

  • The logging level must be set to either ERROR or INFO in default_route_settings.
  • If per-route logging has been configured in route_settings, the logging level for every route must also be set to either ERROR or INFO.

For API Gateway WebSocket API stages, it’s important to have appropriate logging enabled. Logging for these stages provides comprehensive records of the requests processed by API Gateway WebSocket APIs. This includes details such as backend responses from API integrations, Lambda authorizer responses, and the requestId associated with AWS integration endpoints.

Remediation

To learn how to configure execution logging for API Gateway WebSocket APIs, refer to the Set up CloudWatch API logging using the API Gateway console section of the API Gateway Developer Guide documentation.

PREVIEWING: aliciascott/DOCS-9725-Cloudcraft