AWS: Identity and Access Management (original) (raw)

Last Updated : 12 Jun, 2026

Amazon Web Services Identity and Access Management (IAM) is a security framework and web service that securely controls who can access AWS resources and what actions they are allowed to perform, acting as the backbone of account-level security in AWS. It manages:

services_under_iam

Importance of IAM

Use Cases

AWS Account Root User

The root user is the original identity created with an AWS account and has unrestricted access to all services and billing.

Core Components

IAM is built on several core components that represent "who" can access your account.

IAMCOMP

1. IAM Users

IAM Users represent individual people or applications requiring long-term access to AWS.

2. IAM Groups

IAM Groups are collections of users that simplify permission management.

3. IAM Roles

IAM Roles provide temporary permissions to trusted entities without using long-term credentials.

4. IAM Policies

IAM Policies define what actions identities can perform on which AWS resources. Policies are written in JSON format.

Each policy contains:

**Types of IAM Policies

Feature IAM User IAM Group IAM Role IAM Policies
Purpose Represents a specific person or application with long-term credentials. A logical container to simplify permission management across users. A temporary identity assumed by trusted entities for specific tasks. Defines permissions that specify what actions are allowed or denied on AWS resources.
Credentials Permanent (password, access keys). None; not an identity. Temporary, automatically rotated credentials. No credentials; attached to users, groups, or roles.
Use for Humans Rarely used for direct access; reserved for administrative or break-glass scenarios. Assign common permissions (e.g., Developers, Auditors). Grant short-term, elevated, or cross-account access. Control what users and groups can access in AWS.
Use for Services Not recommended due to long-term key risks. Not applicable. Best practice for service-to-service access (e.g., EC2 → S3). Define permissions for AWS services and resource access.

Workflow of IAM

Identity and Access Management (IAM) works by clearly defining who can access AWS, what they can access, and under what conditions. Its working can be understood in the following flow:

1. Identify the User or Entity (Who)

IAM first identifies who is requesting access. This could be:

2. Authenticate the Request

IAM verifies the identity using authentication mechanisms like:

After authentication, IAM checks policies attached to the user, group, or role. These policies define:

4. Evaluate Permissions

IAM evaluates permissions in this order:

Access is granted only if an explicit allow exists and no deny overrides it.

5. Grant Access to Resources (What)

If authorization succeeds, IAM allows the user or service to perform the requested action on the specified AWS resource such as:

For applications and services, IAM roles provide temporary credentials instead of long-term keys, improving security and reducing credential misuse.

IAM-aws

Access Management

Access management determines who can access which AWS resources and what actions they can perform.

Federation and Single Sign-On (SSO)

Federation allows external users to access AWS using existing identity providers.

Role-Based Access Control (RBAC)

RBAC assigns permissions based on job roles rather than individual users.

Types of Permissions

How to Set Up IAM

Setting up IAM involves creating users, groups, roles, and policies that define what resources and actions are allowed. Below is a simple process for getting started:

Step 1: Create an IAM User

Screenshot-2026-06-09-090650

Step 2: Create an IAM Group

Screenshot-2026-06-09-090825

Step 3: Enable MFA (Multi-Factor Authentication)

**Note: For the detailed setup and configuration process of Multi-Factor Authentication (MFA) in AWS, refer to the dedicated MFA article.

Step 4: Create IAM Roles

IAM roles can be created for cross-account access or to give AWS services permissions to interact with each other (E.g., EC2 needs access to S3).

Screenshot-2026-06-09-091317

Benefits

Best Practices