github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/apigateway/AVD-AWS-0003/Terraform.md (about)

     1  
     2  Enable tracing
     3  
     4  ```hcl
     5   resource "aws_api_gateway_rest_api" "test" {
     6  	
     7   }
     8  
     9   resource "aws_api_gateway_stage" "good_example" {
    10     stage_name    = "prod"
    11     rest_api_id   = aws_api_gateway_rest_api.test.id
    12     deployment_id = aws_api_gateway_deployment.test.id
    13     xray_tracing_enabled = true
    14   }
    15   
    16  ```
    17  
    18  #### Remediation Links
    19   - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_stage#xray_tracing_enabled
    20