Log onto the console as your regular user with the required permissions.
Delete the IAM policies
We will delete the IAM policies created, as they are no longer applied to any groups.
Log on to the console as your regular user with the required permissions, go to the IAM service page:
Click on Policies on the left:
3.Click on Filter Policies and select Customer managed:
Select the policy you want to delete Region_Restrict:
Click on Policy actions, and select Delete:
Click on Delete:
Perform the same steps above to delete the Ec2_FamilyRestrict and EC2EBS_Restrict policies.
Click on Groups:
Select the CostTest group, click Group Actions, click Delete Group:
Click Yes, Delete:
Select TestUser1, and click Delete user:
Click Yes, delete:
Go to the EC2 dashboard:
Click Security Groups on the left:
Select the security groups you took note of, ensure you have the correct groups that were created. Click Actions, select Delete Security Groups:
Triple check they are the groups you wrote down, and click Yes, Delete:
Confirm there are no io1 unattached EBS volumes, go to the EC2 dashboard, click on Elastic Block Store, click Volumes. You can sort by the Created column to help identify volumes that were not terminated as part of this lab.