Validate policy effectiveness
Validate the effectiveness of the policy by creating an EC2 instance with a volume type of io1
-
Click on the name of the currently logged-in user.
-
Click Log back in

- At IAM user name enter the user we created (testuser).
- At Password enter the password we have set up (Testuser123).
- Click Sign in.

If you failed to log in, please check the user and password information created in the previous steps. Also, make sure you use the correct AWS account ID when logging in.
-
Click the search box, and click EC2 to go to the management interface of the EC2 service.
-
Click Launch instance, then click Launch instance.

- At Name enter testserver

- Scroll down, click on instance type t2.micro.

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

- At Key pair name, click in the Select box.
- Select **Proceed without a key pair (Not recommended)

We will need key pair to be able to make a connection to the EC2 instance. In this lab, we just want to check the service permissions so we won’t need to connect to the EC2 instance.
- Scroll down to Configure storage.

- Click gp3.
- Click Provisioned IOPS SSD (io1) to change the volume type to io1.
- Click Launch instance.

- We will see that launching an instance with volume type io1 will fail.

Try creating a server with volume type gp3
- Click Edit instance config.

- Scroll down, click io1.
- Click General purpose SSD(gp3) to convert the volume type to gp3.
- Click Launch instance.

- So we have successfully created EC2 instance with instance type t3.nano and volume type gp3.

Delete the created testserver
- Click View all instances.

-
At the list of EC2 instances.
- Click to select testserver.
-
Click Instance state.
- Click Terminate instance to proceed to delete the virtual server testserver.
- Click Terminate to confirm.
-
Make sure you delete the instance successfully, avoiding unexpected costs.

In this step, we have successfully created 1 EC2 instance with instance type of t3.nano and volume type of gp3 (forbid users from creating volume type of io1). The next step is to clean up resources.