aws-iam
Skill by aws
Provides verified corrections for IAM behaviors that AI agents often get wrong, plus workflows for IAM roles and baseline policies. It is for developers and agents writing IAM, bucket, or trust policies on AWS.
Install aws-iam
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws /tmp/agent-toolkit-for-aws && mkdir -p ~/.claude/skills && cp -r /tmp/agent-toolkit-for-aws/skills/core-skills/aws-iam ~/.claude/skills/aws-iamRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws /tmp/agent-toolkit-for-aws && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-toolkit-for-aws/skills/core-skills/aws-iam ~/.gemini/antigravity-cli/skills/aws-iamAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The aws-iam skill gives AI assistants verified corrections for IAM behaviors they often get wrong. It covers policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML and MFA specifics. It also covers condition operator safety, bucket policy deny patterns, and confused deputy protection.
The skill includes two reference workflows. One covers creating and maintaining IAM roles, including service and execution roles with aws:SourceAccount and aws:SourceArn trust conditions. The other covers generating policies from application source code or a Terraform plan JSON, which requires iam-policy-autopilot. It is for developers and agents working on IAM roles, policies, STS, or Organizations. It does not cover Cognito user-pool policies or app-level RBAC.
Written from the project's SKILL.md and checked against it.
What it can do
- Policy evaluation correctionsCovers ForAllValues with Null checks, case-sensitive tag keys, and privilege escalation actions.
- Trust policy and confused deputy guidanceCovers trust policy gotchas and aws:SourceAccount and aws:SourceArn trust conditions.
- STS and Organizations edge casesCovers GetSessionToken restrictions, role chaining limits, and Organizations account removal.
- IAM role management workflowGuides creating service and execution roles, trust policies, and permission hygiene.
- Policy generation workflowGenerates baseline policies from application source code or a Terraform plan JSON.
- Bucket policy deny patternsCovers deny patterns such as VPC endpoint restrictions and org paths.
- SAML and MFA specificsCovers encrypted SAML assertion URLs, private key format, and MFA resync policy actions.
- SDK specificsLists boto3 IAM access key methods and Organizations exception names.
What you need
- AWS MCP server (recommended, not required)
- AWS CLI or SDK (alternative to the MCP server)
- iam-policy-autopilot for policy generation from source code or Terraform plans
Try asking
- Create a Glue service role with aws:SourceAccount trust conditions
- Generate a baseline IAM policy from this Terraform plan JSON
- Check this ForAllValues condition for the empty key edge case
Good to know
- Not a comprehensive IAM guide; search AWS documentation for full guidance.
- Does not cover Cognito user-pool policies or app-level RBAC.
- Policy generation from code or Terraform must use iam-policy-autopilot.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/core-skills/aws-iam/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/aws-iam-policy-generation.md39 KB -
references/aws-iam-role-management.md7 KB -
references/common-pitfalls.md6 KB -
references/service-authorization.md3 KB
Alternatives to aws-iam
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
aws-iam: common questions
Does this skill generate IAM policies from application code?
Yes. For application source code or a Terraform plan JSON, the skill says to use iam-policy-autopilot instead of building policies manually.
Is this a complete IAM guide?
No. The skill says it is not comprehensive and recommends checking AWS documentation for full IAM guidance.
Does it cover Cognito user-pool policies?
No. The skill excludes non-IAM authorization such as Cognito user-pool policies and app-level RBAC.
How do I install aws-iam?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is aws-iam free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is aws-iam safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to aws-iam?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
