iam
AWS Identity and Access Management for users, roles, policies, and permissions. Use when creating IAM policies, configuring cross-account access, setting up service roles, troubleshooting permission errors, or managing access control.
npx skills add itsmostafa/aws-agent-skills --skill iam --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# AWS IAM AWS Identity and Access Management (IAM) enables secure access control to AWS services and resources. IAM is foundational to AWS security—every AWS API call is authenticated and authorized through IAM. ## Table of Contents - [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references) ## Core Concepts ### Principals Entities that can make requests to AWS: IAM users, roles, federated users, and applications. ### Policies JSON documents defining permissions. Types: - **Identity-based**: Attached to users, groups, or roles - **Resource-based**: Attached to resources (S3 buckets, SQS queues) - **Permission boundaries**: Maximum permissions an identity can have - **Service control policies (SCPs)**: Organization-wide limits ### Roles Identities with permissions that can be assumed by trusted entities. No permanent credentials—uses temporary security tokens. ### Trust Relationships Define which principals can assume a role. Configured via the role's trust policy. ## Common Patterns ### Create a Service Role for Lambda **AWS CLI:** ```b
- Table of Contents
- Core Concepts
- Principals
- Policies
- Roles
- Trust Relationships
- Common Patterns
- Create a Service Role for Lambda
- Create Custom Policy with Least Privilege
- Cross-Account Role Assumption
- CLI Reference
- Essential Commands
- Useful Flags
- Best Practices
Create the trust policy cat > trust-policy.json << 'EOF' Create the role aws iam create-role \ Attach a managed policy aws iam attach-role-policy \ cat > policy.json << 'EOF' aws iam create-policy \ In Account B (trusted account), create role with trust for Account A cat > cross-account-trust.json << 'EOF'
What does the iam skill do?
AWS Identity and Access Management for users, roles, policies, and permissions. Use when creating IAM policies, configuring cross-account access, setting up service roles, troubleshooting permission errors, or managing access control.
How do I install it?
Run `npx skills add itsmostafa/aws-agent-skills --skill iam --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From itsmostafa/aws-agent-skills, a repository with 1,139 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
