AWS::EC2::Instance Tag - AWS CloudFormation (original) (raw)

Specifies a tag. For more information, see Resource tags.

Syntax

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

JSON

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

YAML

  Key: String
  Value: String

Properties

Key

The tag key.

Required: Yes

Type: String

Update requires: No interruption

Value

The tag value.

Required: Yes

Type: String

Update requires: No interruption

Examples

This example specifies two tags for the instance.

JSON

"Tags" : [
   {
      "Key" : "key1",
      "Value" : "value1"
   },
   {
      "Key" : "key2",
      "Value" : "value2"
   }
]

YAML

Tags: 
  - Key: "key1"
    Value: "value1"
  - Key: "key2"
    Value: "value2"

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.