Attach policy to group

Attach policy to CostTest group

  1. After creating the policy successfully. In the left menu, click IAM user groups.

CostGovernance

  1. Click on the CostTest group.

CostGovernance

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

CostGovernance

  1. In the Filter by Type box, click Customer managed.

CostGovernance

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

  1. Click on the Filter box, enter the policy name we created in the previous step ( RegionRestrict ).
    • Press Enter.

CostGovernance

  1. Click the checkbox next to the RegionRestrict policy.
    • Click Attach policies.

CostGovernance

  1. Ensure the policy is attached successfully.

CostGovernance

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