ManagedResourceTags
Applies explicit tags to the Amazon Elastic Compute Cloud instances and other resources that the capacity provider provisions and manages on your behalf.
Note
The ManagedResourceTags property controls tagging of the Amazon EC2 instances
and other resources that Lambda manages for the capacity provider. This property differs from
the PropagateTags property,
which specifies whether AWS SAM propagates the Tags
property to the CloudFormation resources that AWS SAM generates from your template.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
Tags:Map
Properties
The following properties are supported for ManagedResourceTags.
-
A map of key-value pairs to apply to the Amazon EC2 instances and other resources that the capacity provider manages.
Type: Map
Required: No
CloudFormation compatibility: AWS SAM uses this property to construct the
PropagateTagsproperty of anAWS::Lambda::CapacityProviderresource. AWS SAM setsModetoExplicitand converts the key-value pairs to a list of Tag objects inExplicitTags.
Examples
Apply explicit tags to managed resources
The following example applies an explicit set of tags to the Amazon EC2 instances that the capacity provider manages.
ManagedResourceTags: Tags: CostCenter:cc-1234Environment:Production