API Gateway X-Ray tracing is disabled Affecting API Gateway (REST APIs) service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
General/ APIs

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-Controls
  • Snyk IDSNYK-CC-00313
  • creditSnyk Research Team

Description

Traces will not be collected for this API Gateway, which can impede incident management.

How to fix?

Set the xray_tracing_enabled attribute to true.

Example configuration:

resource "aws_api_gateway_stage" "example" {
  deployment_id = aws_api_gateway_deployment.example.id
  rest_api_id   = aws_api_gateway_rest_api.example.id
  stage_name    = "example"
  xray_tracing_enabled = true
}