Skip to main content

Command Palette

Search for a command to run...

How to Create and Attach IAM Policies in AWS

Step-by-Step Guide to Creating and Attaching IAM Policies in AWS

Updated
2 min read
How to Create and Attach IAM Policies in AWS
A
Associate Software Developer with experience building scalable, production-grade systems and backend services. Strong foundation in data structures, system design, and core computer science concepts, with a passion for learning new technologies and sharing practical engineering knowledge through writing.

Introduction

You manage access in AWS by creating policies and attaching them to IAM identities (users, groups of users, or roles) or AWS resources. A policy is an object in AWS that, when associated with an identity or resource, defines their permissions. AWS evaluates these policies when an IAM principal (user or role) makes a request. Permissions in the policies determine whether the request is allowed or denied. Most policies are stored in AWS as JSON documents. AWS supports six types of policies: identity-based policies, resource-based policies, permissions boundaries, Organizations SCPs, ACLs, and session policies.

For more details visit.

Create IAM Policies

  1. Open the AWS Management Console and navigate to the Identity and Access Management (IAM).

  2. Click on Policies from the left navigation panel.

  3. Click Create policy.

  4. Choose S3 from the down under Service.

  5. Click All list actions under Access level.

  6. Select All under Resources.

  7. Click Next.

  8. Write a suitable policy name.

  9. Click Create policy.

Creating and attaching policy with an IAM user

  1. Click on Users from the left navigation panel.

  2. Click Create user.

  3. Write a suitable user name.

  4. Check Provide user access to the AWS Management Console.

  5. Select I want to create an IAM user.

  6. Click Custom password and type a suitable password.

  7. Uncheck Users must create a new password at next sign-in for now.

  8. Click Next.

  9. Select Attach policies directly.

  10. Search and select the newly created policy.

  11. Click Next -> Create user.

  12. Create an S3 bucket.

  13. Login as an IAM user with newly created credentials.

  14. The S3 bucket can be viewed by this IAM user.

AWS Training Chronicles: From Novice to Expert

Part 2 of 22

Follow my journey as I learn AWS from scratch, sharing insights, tips, and hands-on experiences along the way.

Up next

How to Create and Attach IAM Roles in AWS

Step-by-Step Guide to Creating and Attaching IAM Roles in AWS