aws-iam
TLDR
Create a new IAM user
SYNOPSIS
aws iam command [options]
DESCRIPTION
aws iam is the AWS CLI interface for AWS Identity and Access Management (IAM), the service for controlling access to AWS resources. IAM enables creating users, groups, roles, and policies to manage authentication and authorization.
IAM is global (not region-specific) and provides fine-grained access control through JSON policies. It supports identity federation with SAML 2.0 and OIDC providers, and multi-factor authentication for enhanced security.
COMMANDS
create-user
Create a new IAM userdelete-user
Remove a usercreate-access-key
Generate access key credentialscreate-role
Create a role for service or cross-account accessattach-user-policy
Attach a managed policy to a userattach-role-policy
Attach a managed policy to a rolecreate-policy
Create a custom managed policycreate-group
Create a user groupadd-user-to-group
Add user to a grouplist-users
List all IAM usersget-user
Get user detailssimulate-principal-policy
Test policy permissions
CAVEATS
Policy changes can take several seconds to propagate. The root account should never be used for daily operations. Access keys should be rotated regularly. IAM has a limit of 5000 users per account. Inline policies are harder to audit than managed policies.
HISTORY
AWS IAM launched in May 2010 as the access control system for AWS. Roles were introduced in 2012 for cross-account and service access. Policy conditions expanded significantly over the years, and IAM Identity Center (formerly SSO) was added in 2017 for centralized access management.
SEE ALSO
aws(1), aws-sts(1), aws-organizations(1)


