AWS Identity and Access Management (IAM)
Cloud service · AWS · Updated

AWS Identity and Access Management (IAM)

In short

AWS Identity and Access Management (IAM) is a cloud service that helps securely control access to AWS resources by allowing you to create and manage AWS users and groups, and use permissions to allow and deny their access to AWS resources.

Cloud Services Hub →

Free AWS Identity and Access Management (IAM) tools

9 key features of AWS Identity and Access Management (IAM)

AWS Identity and Access Management (IAM) provides fine-grained access control, identity federation, multi-factor authentication, integration with AWS services, centralized control, policy simulation tools, customizable password policies, and an Access Advisor for comprehensive and secure management of permissions and access within the AWS cloud.

01
Fine-Grained Access Control

AWS IAM permits users to grant and restrict access to AWS services and resources very precisely, allowing the assignment of different permissions for different users, roles, groups, and policies.

02
Identity Federation

IAM supports identity federation, enabling users to authenticate with a trusted external identity provider (IdP) and access AWS resources without requiring an AWS-specific user account.

03
Multi-Factor Authentication (MFA)

For enhanced security, IAM allows the activation of Multi-Factor Authentication, requiring users to present two or more separate credentials for accessing AWS resources.

04
Integrated with AWS Services

IAM is integrated seamlessly with other AWS services, ensuring that security and access policies are uniformly enforced across the AWS ecosystem.

05
Centralized Control

IAM provides a centralized way to manage users, security credentials (such as access keys), and permissions, offering full control over your AWS environment.

06
Policy Simulation Tools

AWS offers policy simulation tools within IAM, helping admins understand and refine permissions to ensure the right access levels are set before deploying changes.

07
Customizable Password Rotation Policies

IAM empowers administrators to enforce custom password policies, including password complexity requirements and rotation periods, enhancing security.

08
Access Advisor

The Access Advisor feature within IAM helps users and administrators identify unused permissions and tighten access controls, minimizing security risks.

09
Credential Reports

IAM can generate a credential report listing IAM users and the status of their credentials.

Where AWS Identity and Access Management (IAM) is used

AWS Identity and Access Management (IAM) use cases include granular permissions management, secure application access to AWS resources without hard-coded credentials, the delegation of administrative tasks, enforcing multi-factor authentication for enhanced security, and secure cross-account resource access.

  1. 01
    Granular Access Control

    AWS IAM allows organizations to create and manage AWS users and groups, and use permissions to allow and deny their access to AWS resources. By applying granular permissions, businesses can adhere to the principle of least privilege, ensuring employees only have access to the resources they need for their specific role, minimizing the risk of an internal security breach.

  2. 02
    Secure Access to AWS Resources for Applications

    IAM roles can be used to grant applications running on EC2 instances permissions to access AWS resources without using static AWS access keys. This not only secures access to AWS services but also simplifies credential management, as roles automatically manage the credentials that the application uses.

  3. 03
    Delegation of Administration

    IAM enables the creation of IAM policies to delegate administrative tasks without granting full AWS account access. For instance, IT departments can delegate the management of specific AWS resources to the users who need to work with them, enhancing security and operational efficiency.

  4. 04
    Multi-Factor Authentication for Enhanced Security

    AWS IAM supports multi-factor authentication (MFA), adding an extra layer of security by requiring users to provide not just a password but also a piece of information only they possess. This significantly reduces the risk of unauthorized access resulting from compromised credentials.

  5. 05
    Cross-Account Access

    IAM roles enable users to securely access resources in another AWS account known as 'cross-account access'. This is particularly useful for companies that manage multiple AWS accounts and need a secure way of accessing resources across these accounts without having to create multiple user identities.

How AWS Identity and Access Management (IAM) is priced

AWS IAM itself is offered at no additional charge to AWS customers, but costs may be incurred for optional features such as AWS Directory Service integration or when using external identities with AWS SSO.

Free Tier

AWS Identity and Access Management (IAM) is available to AWS customers at no additional charge. This includes using the AWS Management Console, AWS Command Line Interface, AWS SDKs, and AWS APIs. IAM support for authenticating and authorizing their users is also included without extra cost. However, other AWS services accessed by these users may incur charges.

AWS Directory Service Integration

For customers who integrate AWS IAM with AWS Directory Service for Microsoft Active Directory (AWS Managed Microsoft AD), additional costs are incurred for the AWS Directory Service. Pricing for the directory service is based on the edition chosen (Standard or Enterprise) and the region it is hosted in. This service is charged on an hourly rate, with prices varying by region.

AWS IAM Identity Center

AWS IAM Identity Center integration with IAM is provided at no extra cost. However, if you use connected services such as AWS Directory Service, charges for those services may apply.

IAM Access Analyzer unused access analysis

Unused access analysis is charged per IAM role or IAM user analyzed per month.

IAM Access Analyzer custom policy checks

Custom policy checks are a paid IAM Access Analyzer feature.

Services AWS Identity and Access Management (IAM) works with

Amazon S3Amazon S3

IAM integrates with Amazon S3 to manage access to buckets and objects. Policies can be used to restrict who can read, write, or delete objects.

Amazon EC2Amazon EC2

IAM allows you to create and manage permissions to control who can launch, terminate, and manage EC2 instances and their associated resources.

AWS LambdaAWS Lambda

IAM integrates with AWS Lambda to manage permissions for invoking functions and accessing other AWS resources from within Lambda functions.

Amazon RDSAmazon RDS

IAM manages access to Amazon RDS databases, allowing you to control who can create, modify, and delete databases, as well as manage database security groups.

Amazon DynamoDBAmazon DynamoDB

IAM controls access to Amazon DynamoDB tables and items, enabling fine-grained security permissions for accessing the database.

Amazon API GatewayAmazon API Gateway

IAM policies control who can manage APIs and invoke methods configured for AWS_IAM authorization. Clients sign requests with AWS credentials, and API Gateway evaluates their permissions before accepting them.

Amazon AppFlowAmazon AppFlow

IAM policies control access to AppFlow flows and connectors. IAM roles and resource policies authorize flows to read or write AWS destinations such as S3.

Amazon AthenaAmazon Athena

IAM policies govern who can run Athena queries and use particular workgroups and data catalogs. Querying data also requires permissions for the underlying data and query-result locations.

Amazon Augmented AI (Amazon A2I)Amazon Augmented AI (Amazon A2I)

IAM controls access to human review workflows and grants their execution roles permission to access input data and store review results. Administrators can also restrict who may create or start human loops.

Amazon AuroraAmazon Aurora

IAM policies govern Aurora cluster administration, and supported Aurora engines offer IAM database authentication. Applications can use short-lived authentication tokens instead of stored database passwords.

Alternatives to AWS Identity and Access Management (IAM) in other clouds

Azure

Azure role-based access control (Azure RBAC)

AWS IAM and Azure RBAC both let teams control who can perform specific operations on cloud resources. AWS IAM can manage users and groups and attach policies to identities or resources, while Azure RBAC grants access to Microsoft Entra identities through role assignments that descendants inherit from parent scopes.

Compare fact by fact
AWS Identity and Access Management (IAM)Azure role-based access control (Azure RBAC)
How permissions are grantedPolicies on identities or resourcesRole assignments at hierarchical scopes
Identity sourceIAM users and groups; federationMicrosoft Entra identities
Explicit deniesDeny statements in IAM policiesAzure-managed deny assignments

What is AWS Identity and Access Management (IAM)

3 min read

AWS Identity and Access Management (IAM) is a pivotal feature within the Amazon Web Services (AWS) ecosystem, designed to provide secure and granular control over AWS resources. IAM facilitates the management of users, groups, permissions, and roles within an AWS environment, ensuring that only authenticated and authorized entities can access specific resources. This comprehensive security management tool is crucial for businesses and organizations to safeguard their cloud-based assets and data effectively. 

At its core, AWS IAM allows for the creation and management of AWS users and groups, and the assignment of permissions that control which AWS resources users and groups can access. IAM policies, which are essentially documents that explicitly list permissions, define what actions are allowed or denied on different resources, enabling administrators to enforce security policies at a granular level. These policies are attached to IAM entities including users, groups, or roles. The flexibility of IAM enables complex configurations, such as allowing a user full access to Amazon S3 but restricting access to Amazon DynamoDB. 

The AWS account root user starts with complete access to all AWS services and resources. Do not use the root user for everyday tasks; use other identities with the permissions needed for their tasks.

IAM groups are collections of IAM users. A policy attached to a group affects every user who belongs to that group.

Permission policies can also be attached to resources, rather than only to identities.

One of the key features of IAM is the role-based access control (RBAC) that enables the delegation of permissions for the purpose of carrying out specific tasks. This is particularly useful in scenarios where temporary access is needed without having to share security credentials. IAM roles can be assumed by AWS services, applications, or even users from a different AWS account, enhancing the collaboration across AWS accounts without compromising the security of resources. 

IAM Identity Center provides workforce access across multiple AWS accounts and application assignments across AWS.

Furthermore, IAM seamlessly integrates with other AWS services ensuring that security and access policies are consistently applied across the AWS environment. This integrated approach allows for the central management of access permissions and auditing of AWS resources, making it easier for organizations to comply with regulatory requirements. Another significant advantage of IAM is its support for multi-factor authentication (MFA), adding an extra layer of security for accessing AWS services. With MFA, users must provide not only their usual authentication credentials but also an additional authentication factor, such as a FIDO2 passkey or security key, or a code from a virtual authenticator app or hardware TOTP token, to gain access. This feature greatly enhances the security of AWS accounts. AWS CloudTrail provides detailed access logs that track user activities within AWS, offering valuable insights for security audits. These logs can be analyzed to detect unusual behavior patterns or potential security breaches, allowing organizations to respond promptly to security incidents. 

Despite its comprehensive features, AWS IAM is offered at no additional charge, making it an accessible tool for businesses of all sizes seeking to manage access to their AWS resources securely. However, while IAM itself is free, some actions performed using IAM, such as accessing other AWS services, may incur charges according to AWS's pricing policies. 

IAM Access Analyzer unused access analysis continuously identifies unused access and centralizes findings in a dashboard, including unused roles, user access keys and passwords, and unused services and actions for active roles and users.

IAM Access Analyzer custom policy checks validate before deployment that IAM policies adhere to specified security standards, using automated reasoning to detect nonconformant policy updates.

In summary, AWS Identity and Access Management (IAM) is an essential component of the AWS cloud platform, providing the means to securely control access to AWS services and resources. With its powerful and flexible permission and policy management capabilities, IAM plays a critical role in protecting an organization's cloud infrastructure from unauthorized access, thereby maintaining the integrity and confidentiality of sensitive data and assets.

AWS Identity and Access Management (IAM) exam questions

Real practice exam questions on AWS Identity and Access Management (IAM), with the correct answer and its explanation. Answer them with every option in the exam simulator.

AIB-C01

An insurer runs an AI claims-processing application on Amazon EC2. Operations staff normally have no permission to change production resources. During an approved incident, one engineer must view health metrics and reboot two designated inference instances for up to 90 minutes. The engineer must not change instance configurations, access claims datasets, or retain production-change access after the incident window. Which access arrangement should the governance lead approve?

Show answerCORRECT ANSWER

Grant an approval-controlled IAM role session lasting no more than 90 minutes, with only the required metric-viewing permissions and reboot permission for the two designated instances. Require a new approval for any subsequent elevated session.

This arrangement limits the permitted actions, target resources, and access duration to the approved incident requirements. Requiring fresh approval prevents the engineer from simply obtaining another elevated session after the window ends.

DVA-C03

A developer signs in to the AWS Management Console through the company's SAML identity provider as the Engineering role, then uses Switch Role to enter the Diagnostics role. During an incident, the developer needs to run AWS CLI commands under two roles in other accounts: ReleaseRead and PartnerCase. Both target roles trust only Diagnostics, and Diagnostics has permission to assume both. PartnerCase also requires an external ID; ReleaseRead does not. The developer has a CLI profile with valid temporary credentials for Diagnostics. Which runbook instructions will let the developer obtain both target role sessions without changing any IAM policies?

Show answerCORRECT ANSWER

Use the Diagnostics CLI profile to call AWS STS AssumeRole for both target roles. Include the external ID only in the request for PartnerCase.

The CLI requests are signed with Diagnostics credentials, so they use the principal trusted by both target roles. The AssumeRole API also accepts the ExternalId parameter required by PartnerCase. The console would instead evaluate a new switch using the original Engineering sign-in.

SAP-C03

A company aggregates application logs from its workload accounts through CloudWatch Logs subscriptions into an Amazon S3 bucket in a dedicated archive account. A security account runs investigation tools by using an IAM role named LogInvestigator. The tools must read archived objects directly with this role's credentials, without assuming a role in the archive account.

The archive bucket policy allows the security account principal, arn:aws:iam::222222222222:root, to perform s3:GetObject on arn:aws:s3:::central-log-archive/workloads/*. The security account's administrators are responsible for deciding which local identities can read these objects. The LogInvestigator role currently has only s3:ListBucket permission for the archive bucket, restricted to the workloads/ prefix. Listing succeeds, but downloading an existing object returns AccessDenied.

The bucket uses S3 Bucket owner enforced Object Ownership, and the objects use SSE-S3 encryption and are immediately retrievable. No applicable policy contains an explicit deny, and no permissions boundary, session policy, or Organizations policy restricts the requests.

Which change will allow the downloads while preserving the existing delegation model and least privilege?

Show answerCORRECT ANSWER

Attach an identity-based policy to LogInvestigator that allows s3:GetObject on arn:aws:s3:::central-log-archive/workloads/*. Keep the existing bucket policy.

The bucket owner has authorized the security account to access the objects. The security account can delegate that permission to LogInvestigator through an identity-based policy. Together, the bucket policy and role policy authorize cross-account reads, scoped to the required object prefix.

Practice AWS Identity and Access Management (IAM) in a full exam

Questions on AWS Identity and Access Management (IAM) in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS Identity and Access Management (IAM) in lessons

62 short lessons on AWS Identity and Access Management (IAM) in 11 certification courses.

and 56 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.