This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::CloudWatch::OTelEnrichment
Enables OpenTelemetry (OTel) metric enrichment in Amazon CloudWatch, allowing CloudWatch vended metrics to be available for PromQL querying enriched with AWS resource tags and metadata.
This is a singleton resource — only one OTelEnrichment resource can exist per AWS account. The resource has no configurable properties. Creating the resource starts enrichment, and deleting it stops enrichment.
Before creating this resource, you must enable resource tags on telemetry for your account. For more information, see Supported AWS infrastructure metrics in the Amazon CloudWatch User Guide.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::CloudWatch::OTelEnrichment" }
YAML
Type: AWS::CloudWatch::OTelEnrichment
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns AWS account ID.
For more information about using the Ref function, see Ref.
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
AccountId-
The AWS account ID. This is the primary identifier for this singleton resource.
Status-
The current status of OTel enrichment for the account. Valid values are
RUNNING(enrichment is enabled) andSTOPPED(enrichment is disabled).