Agent skill · DevOps & Cloud

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.

itsmostafagithub.com/itsmostafaGitHub ↗
claude-codecodexMIT
Install
npx skills add itsmostafa/aws-agent-skills --skill iam --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/iam/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,139
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Table of Contents
  2. Core Concepts
  3. Principals
  4. Policies
  5. Roles
  6. Trust Relationships
  7. Common Patterns
  8. Create a Service Role for Lambda
  9. Create Custom Policy with Least Privilege
  10. Cross-Account Role Assumption
  11. CLI Reference
  12. Essential Commands
  13. Useful Flags
  14. Best Practices
Ships with 2 files
  • best-practices.md
  • policies.md
Commands it runs
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'
More from aws-agent-skills
All skills →
About this skill
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.

Keep going