Assign policy to group

Assign policy to group CostTest

  1. After creating the policy successfully. In the left-hand menu, click User groups.

CostGovernance

  1. Click on the CostTest group.

CostGovernance

  1. On the group page CostTest.
    • Click the Permissions tab.
    • Click Add permissions.
    • Click Attach policies.

CostGovernance

  1. 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 ( RegionRestrict ).
    • Press the Enter key.

CostGovernance

  1. Click the checkbox next to RegionRestrict policy.
    • Click Add permissions.

CostGovernance

  1. Make sure the policy is successfully assigned.

CostGovernance

In the next step, we will log in with the user testuser to check the permissions on the Region that we have assigned.