Creating an EC2 Instance with a tag

Create EC2 Instance with tag

  1. Visit EC2 Management Console and click Launch Instances.

Tag

In this workshop, we will use the Singapore region (ap-southeast-1). If you want to use another Region, be sure to move the Region back to the Region you want to use when creating workshop-related resources.

  1. Click Select to proceed with the Amazon Linux AMI.

Tag

  1. On Choose Instance Type, click Review and Launch.

Tag

  1. On the Review Instance Launch page, scroll the screen to the bottom towards the Tag section. Click Edit Tags to modify this EC2 instance’s tags.

Tag

  1. Click Add Tag to proceed with adding tags.

Tag

  1. Add the following tags as shown below and click Review and Launch.
Key Value
Owner Yourname
Service Yourservice
Environment Test

Tag

You can download the best-practices guide to implementing an effective AWS resource tagging strategy below.

  1. Click Launch to proceed with creating your EC2 instance.

Tag

  1. Select Create a new key pair.
  • Select key pair type as RSA.
  • Name key pair name as Testtagging.
  • Click Download Key Pair.
  • Click Launch Instances.
  1. Click View Instances to see the EC2 instance we just created.

  2. Click on the EC2 Instance we just created.

  • Click the Tags tab to check the created tags.

Tag

  1. Repeat steps 1 - 10 to create additional EC2 Instance with the following Tags:
Key Value
Owner Yourname
Service Yourservice
Environment UAT

We can avoid creating a new key-pair by reusing the key-pair that we just created to initialize the second EC2 instance.
After clicking Launch on the Review Instance Launch page:

Select Choose an existing key pair.
Select key pair Testtagging.
Click select I knowledge that I have access to the corresponding private key file, and that without this file, I won’t be able to log into my instance.
Click Launch.
Click View Instance. \

Tag

Next, we will modify these tags.