Test policy effectiveness

Test policy effectiveness by creating an EC2 instance other than t3.nano

  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.micro.

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. Check that the Instance type has changed to t3.micro.
  • Click Launch instance.

CostGovernance

In this step, we attempted to create an EC2 instance with the instance type t3.micro and this process was unsuccessful because we only have permission to create instances belonging to the T3 family and with the nano size. ( t3.nano )

CostGovernance

Try creating a server with T3 family and nano size (t3.nano)

  1. Click Edit instance config.

CostGovernance

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

  2. In the search box, enter t3.

    • Click to select instance type t3.nano.

CostGovernance

  1. Check that the Instance type has changed to t3.nano.
    • Click Launch instance.

CostGovernance 5. We have successfully created an EC2 instance with the instance type t3.nano.

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. In the next section, we will try to restrict the creation of an instance with the EBS volume type io1.