Aws Iam
Verified corrections for IAM behaviors that AI agents frequently get wrong — policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML/MFA specifics. Also provides structured workflows for IAM role management and least-privilege policy generation. Covers condition operator safety (ForAnyValue/ForAllValues with Null checks for absent keys), bucket policy deny patterns (VPC endpoint restrictions, org path conditions), resource-based policy confused deputy protection, and service role creation for AWS services (Glue, CloudTrail, VPC Flow Logs, Firehose, DataSync, S3 replication, Lambda, Step Functions, ECS, etc.) including trust policies with aws:SourceAccount/aws:SourceArn conditions. Applies when creating or configuring IAM roles, writing IAM or bucket policies, working with STS, Organizations, condition operators, or any task requiring an IAM service role or execution role. Does not cover non-IAM authorization like Cognito user-pool policies
- Type
- Skill
- Author
- aws
- Category
- Security
- GitHub stars
- 3.3K
- Installs
- 10.3K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-iamUse cases
- Create an IAM service role with a trust policy scoped to a specific AWS service
- Write a least-privilege policy for a role instead of a broad managed policy
- Check condition operators and bucket policy denies for confused deputy risks
Frequently Asked Questions
What IAM areas does it cover?
Policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML/MFA specifics.
Does it cover Cognito user-pool policies?
No — it does not cover non-IAM authorization such as Cognito user-pool policies.
Which services can it help create service roles for?
Services like Glue, CloudTrail, VPC Flow Logs, Firehose, DataSync, S3 replication, Lambda, Step Functions, and ECS, including trust policies with aws:SourceAccount and aws:SourceArn conditions.
About this skill
Provides verified corrections for IAM behaviors that AI agents commonly get wrong, covering policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML/MFA specifics. It also supplies structured workflows for role management and least-privilege policy generation, including condition operator safety, bucket policy deny patterns, confused deputy protection, and service role creation for services like Glue, CloudTrail, and Lambda. Applies whenever you are creating IAM roles, writing policies, or working with STS and Organizations; it does not cover non-IAM authorization such as Cognito user-pool policies.
Summary written with AI assistance from the project's public description.
More from aws
Aws Serverless
Builds, deploys, manages, debugs, configures, and optimizes serverless applications on AWS using Lambda, API Gateway, Step Functions, EventBridge,...
by aws
Aws Observability
Builds, configures, debugs, and optimizes AWS observability with CloudWatch (Log Insights, Metrics, Alarms, Dashboards, EMF), X-Ray, CloudTrail, an...
by aws
Aws Cdk
Authors, deploys, and troubleshoots AWS infrastructure using CDK with TypeScript or Python. Covers best practices, stack architecture, and construc...
by aws
Aws Containers
Deploys and operates containerized workloads on ECS, Fargate, and ECR. Covers task definitions, Fargate services, ECR repository setup and lifecycl...
by aws
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh