| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
EC2 Tags are embedded properties of the AWS::EC2::Instance, AWS::EC2::RouteTable, AWS::EC2::NetworkInterface, and AWS::EC2::Volume types.
EC2 Tags are typically provided in a list. You can also include useful information in a tag by providing it with a value using the Ref or Fn::GetAtt intrinsic functions. For example:
"Tags": [
{ "Key" : "Role", "Value": "Test Instance" },
{ "Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }
]More examples of tags are provided in the EC2 resources that use tags, and on the Amazon EC2 Snippets page.
Using Tags in the Amazon Elastic Compute Cloud User Guide