Search code examples
amazon-web-servicesaws-cloudformationaws-xrayaws-event-bridge

Eventbrige X-Ray config via Cloudformation


I see Eventbrdge has X-Ray support now which is great -

https://aws.amazon.com/blogs/compute/using-aws-x-ray-tracing-with-amazon-eventbridge/

But the example is via the CLI - does this feature have Cloudformation support yet ? As can't find any docs


Solution

  • Its not related to CloudFormation. This works by wrapping your putEvents calls to Event Bridge.

    o enable tracing, you don’t need to change the event structure to add the trace header. Instead, you wrap the AWS SDK client in a call to AWSXRay.captureAWSClient and grant IAM permissions to allow tracing.

    So you have to modify your application to use that feature.