Assign policy to group

Assign policy to group CostTest

  1. After creating the policy successfully. In the left-hand menu, click User groups.
    • Click on CostTest group.

CostGovernance

  1. On the group page CostTest.

    • Click the Permissions tab.
    • Click Add permissions.
    • Click Attach policies.
  2. In the Filter box, click Type.

CostGovernance

  1. Click Type: Customer managed.

CostGovernance

Customer managed are the IAM Policies we create and manage ourselves.

  1. Click the Filter box, and enter the name of the policy we created in the previous step ( EC2EBS_Restrict ).

    • Press the Enter key.
  2. Click the checkbox next to EC2EBS_Restrict policy.

    • Click Add permissions.

CostGovernance

  1. Make sure the policy is successfully assigned.

CostGovernance

Next step, we will log in as user testuser to check if we can create an EC2 server with an EBS volume with type io1.