This template creates a resource-based policy which configures Amazon SNS active tracing. The policy allows the SNS service to perform actions such as PutTraceSegments, GetSamplingRules, and GetSamplingTargets on any resource. The policy also includes conditions to restrict access to a specific AWS account and SNS topic.

CloudFormation Template