Create EC2 instance without and with Tags that meet conditions

Create EC2 instance without and with Tags that meet conditions

  1. In this step, we will create an EC2 that does not meet the tag requirements according to the ec2-create-tags-existing policy created. This will cause the instance creation to fail. Then we will correct the tag according to the requirements and create the instance successfully.

AWS IAM

  1. Try using INCORRECT Resource Tag to test, select Add additional tags:
    • Select Add new tag
    • Key = Name and Value = Example
    • Key = Team and Value = Beta

AWS IAM

AWS IAM

  1. Use default configuration t2.micro. Select Proceed without a keypair

AWS IAM

  1. Proceed to configure Network.

    • After configuration is complete, review and select Launch instance

AWS IAM

  1. On the Launch Status page, we will receive an error Launch Failed.

    • Thus the 3rd test has passed. Click Edit instance config.

AWS IAM

  1. Now, we will try using CORRECT Resource Tag to test.
    • We will edit the tag correctly.
    • Key = Name and Value = Example
    • Key = Team and Value = Alpha
    • Select Launch instance.

AWS IAM

  1. And this time we successfully launch.

AWS IAM