Create EC2 Instance with tag

Create EC2 Instance with Tags

  1. Visit AWS Management Console, in the search bar find EC2

Tag

Note: In this workshop, we will use the N. Virginia region (us-east-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. In the EC2 console, click Launch instances Tag

  2. For the instance name, enter ec2-instance-1 Tag

  3. Click Add additional tags to proceed with adding tags. Tag

  4. Enter the key and value in the table below:

    KeyValueResource Types
    OwnerYourName• Instances
    • Volumes
    • Network interfaces
    ServiceYourService• Instances
    • Volumes
    EnvironmentTest• Instances
    • Volumes

Tag

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

  1. For the operating system:

    • Select Quick Start
    • Choose Amazon Linux
    • Select Amazon Linux 2023 AMI. Tag
  2. For compute resources:

    • Select t3.micro instance type
    • Key pair: choose Proceed without a key pair (Not recommended) Tag
  3. Choose Edit to configure network: Tag

  4. Disable Auto-assign public IP. Other settings we leave it at default. Tag

  5. Repeat steps 1 - 6 to create additional EC2 Instance named ec2-instance-2 with the following Tags:

    KeyValueResource Types
    OwnerYourName• Instances
    • Volumes
    • Network interfaces
    ServiceYourService• Instances
    • Volumes
    EnvironmentUAT• Instances
    • Volumes

Tag Tag

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

  2. Verify ec2-instance-1 and ec2-instance-2 created successfully . Tag

  3. Click on the instances we just created.

    • Click the Tags tab to check the created tags. Tag

Next, we will modify these tags.