07. Lab - IAM
# Security in the Cloud
In this hands-on exercise, you will create an IAM policy and review the generated JSON.
Prerequisites:
- AWS account
Topics Covered:
By the end of this lab, you will be able to:
- Create an IAM policy using the visual editor.
Steps:
- Create a Policy
- On the AWS Management Console page, type
IAMin theFind Servicesbox and then selectIAM. - Click on
Policieson the left-hand side. - Click
Create policy. - Next to
Service, clickChoose a service. - In the selection box, type
S3. - Select
S3. - Specify the actions allowed in S3 by clicking on
List. - Expand the
Readaction by clicking on the arrow next to it, then selectGetObject. - Next in the
Resourcessection, ensureSpecificis selected, and select theAnycheckboxes next tobucketandobject. - Then click on
Review policy. - Enter a name for your policy in the
Namebox. - Then click on
Create policy.
- On the AWS Management Console page, type
- Review Policy
- After your policy is created, enter the name of the policy you just created in the
Filter policiestext box. - Click on the name of your policy.
- Review the JSON for the policy you just created on the
Permissionstab. - Click on the
Policy usagetab to see if this policy is in use. Notice this policy is not attached to any resources yet.
- After your policy is created, enter the name of the policy you just created in the
Create an IAM policy and review the generated JSON
Task Feedback:
Excellent Work!