Skip to main content

Remediation

From Command Line​

Enable X-Ray tracing​

Use the following command to update the Stage settings and enable X-Ray tracing:

aws apigateway update-stage \
--rest-api-id {{rest-api-id}} \
--stage-name {{stage-name}} \
--patch-operations op=replace,path=/tracingEnabled,value=true

Test API calls​

Perform a few API calls and verify that traces appear in the AWS X-Ray console. Ensure that the traces show accurate request flows and performance metrics.