Test policy effectiveness

Test policy effectiveness by creating an EC2 instance with volume type io1

  1. Click on the name of the currently logged-in user.

    • Click Sign out.
  2. Click Log back in

CostGovernance

  1. At IAM user name enter the user we created (testuser).
    • At Password enter the password we set (Testuser123).
    • Click Sign in.

CostGovernance

If you cannot log in successfully, please double-check the user and password information created in the previous steps. Also, make sure you use the correct AWS account ID when logging in.

  1. Click on the search box, click EC2 to go to the EC2 service management console.

  2. Click Launch instance, then click Launch instance.

CostGovernance

  1. At Name enter testserver

CostGovernance

  1. Scroll down, click on the instance type t2.micro.

CostGovernance

  1. In the search box, enter t3.
    • Click to select instance type t3.nano.

CostGovernance

  1. At Key pair name, click on the Select box.
    • Select Proceed without a key pair (Not recommended)

CostGovernance

We will need a key pair to be able to connect to the EC2 instance. In this lab we only want to test the operation permissions on the service, so we will not need to connect to the EC2 instance.

  1. Scroll down, at Configure storage.
    • Click Add new volume.

CostGovernance

  1. Click gp3.
    • Click to select Provisioned IOPS SSD (io1) to switch the volume type to io1.
    • Click Launch instance.

CostGovernance

  1. We will see that launching the instance with volume type io1 will be unsuccessful. CostGovernance

Try creating a server with volume type gp3

  1. Click Edit instance config.

CostGovernance

  1. Scroll down, click on io1.
    • Click to select General purpose SSD(gp3) to switch the volume type to gp3.
    • Click Launch instance.

CostGovernance

  1. We have successfully created an EC2 instance with the instance type t3.nano and volume type gp3.

CostGovernance

Delete the created testserver

  1. Click View all instances.

CostGovernance

  1. In the list of EC2 instances.

    • Click on testserver.
  2. Click Instance state.

    • Click Terminate instance to proceed with deleting the testserver virtual server.
    • Click Terminate to confirm.
  3. Ensure you delete the instance successfully to avoid unexpected costs.

CostGovernance


In this step, we have successfully created an EC2 instance with the instance type t3.nano and with the volume type gp3 (prohibiting the user from creating a volume type of io1). In the next step, we will proceed to clean up the resources.