Control: 3 API Gateway REST API stages should have AWS X-Ray tracing enabled
Description
This control checks whether AWS X-Ray active tracing is enabled for your Amazon API Gateway REST API stages.
X-Ray active tracing enables a more rapid response to performance changes in the underlying infrastructure. Changes in performance could result in a lack of availability of the API. X-Ray active tracing provides real-time metrics of user requests that flow through your API Gateway REST API operations and connected services.
Remediation
For detailed instructions on how to enable X-Ray active tracing for API Gateway REST API operations, see Amazon API Gateway active tracing support for AWS X-Ray.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.foundational_security_apigateway_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.foundational_security_apigateway_3 --share
SQL
This control uses a named query:
apigateway_rest_api_stage_xray_tracing_enabled