Managing tags using the console

Get the Amazon Virtual Private Cloud (Amazon VPC) ID

  1. Navigate to the CloudFormation console and choose the tagging workload stack.

  2. Choose the Outputs tab of the stack.

  3. Copy the value of the Amazon VPC ID listed.

Select the Amazon VPC

  1. Navigate to the Amazon VPC dashboard.

  2. In the navigation pane, under Virtual private cloud, choose Your VPCs.

  3. In the search bar, enter the Amazon VPC ID value you copied and press Enter.

  4. Select the box to highlight the row of the Amazon VPC.

  5. Choose the Tags tab.

VPC Tags

Notice that the Amazon VPC already has a number of tags assigned to it. The tags were added to the Amazon VPC as they were created by the CloudFormation service. In addition to any tags you define, CloudFormation automatically creates stack-level tags with the prefix aws:. The aws: prefix is reserved for AWS use. This prefix is case-insensitive. If you use this prefix in the Key or Value property, you can’t update or delete the tag. Tags with this prefix don’t count toward the number of tags per resource.

Although aws: is used here, it’s not the only example of AWS-generated tags. See table below for a non-exhaustive list of examples:

AWS-generated tag keyRationale
aws:ec2spot:fleet-request-idIdentifies the Amazon EC2 Spot Instance request that launched the instance
aws:cloudformation:stack-nameIdentifies the AWS CloudFormation stack that created the resource
lambda-console:blueprintIdentifies blueprint used as a template for an AWS Lambda function
elasticbeanstalk:environment-nameIdentifies the application that created the resource
aws:servicecatalog:provisionedProductArnThe provisioned product Amazon Resource Name (ARN)
aws:servicecatalog:productArnThe ARN of the product from which the provisioned product was launched

Another tag assigned to the resource is Name. This is a predefined tag that can be used to name a resource in the console for easy identification. In this case you added this tag via CloudFormation. This will be covered in a later lab.

Managing individual resource tags

  1. Select the resource and choose the Tags tab, then choose Manage tags.

  2. Notice that the tags presented with the option to edit the Name tag are only the user-defined tags.

  3. Choose Add new tag.

  4. Enter the key:value for the tag. In this case, enter environment:dev.

  5. Choose Add new tag again for each additional tag to add. When you are finished adding tags, choose Save.

Add tag

You have now added a new tag on the Amazon VPC resource.

Added tag

Conclusion

You were able to add a new tag directly on an AWS resource using the console. This shows you how easy and simple tag additions can be when using the console.