AWS CloudFormation
User Guide (Version )

AWS::AutoScaling::AutoScalingGroup TagProperty

TagProperty specifies a list of tags for the Tag property of AutoScalingGroup. TagProperty adds tags to all associated instances in an Amazon EC2 Auto Scaling group.

For more information, see Tagging Auto Scaling Groups and Instances in the Amazon EC2 Auto Scaling User Guide. You can find a sample template snippet in the Examples section of the AWS::AutoScaling::AutoScalingGroup documentation.

AWS CloudFormation adds the following tags to all Auto Scaling groups and associated instances:

  • aws:cloudformation:stack-name

  • aws:cloudformation:stack-id

  • aws:cloudformation:logical-id

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Key" : String, "PropagateAtLaunch" : Boolean, "Value" : String }

YAML

Key: String PropagateAtLaunch: Boolean Value: String

Properties

Key

The tag key.

Required: Yes

Type: String

Minimum: 1

Maximum: 128

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Update requires: No interruption

PropagateAtLaunch

Set to true if you want AWS CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group. Set to false if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group.

Required: Yes

Type: Boolean

Update requires: No interruption

Value

The tag value.

Required: Yes

Type: String

Minimum: 0

Maximum: 256

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Update requires: No interruption

On this page: