iam

Design and refine AWS IAM policies with Access Analyzer validation.

12|5|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/aws-samples/sample-claude-code-plugins-for-startups --skill iam-aws-samples
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iam
Source: https://github.com/aws-samples/sample-claude-code-plugins-for-startups/tree/main/plugins/aws-dev-toolkit/skills/iam
Command: npx skills add https://github.com/aws-samples/sample-claude-code-plugins-for-startups --skill iam-aws-samples

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

IAM configurations are complex and error-prone, making it hard to design correct, least-privilege policies, trust policies, and cross-account access.

Core Features & Use Cases

  • Policy evaluation logic explaining how Deny, SCPs, resource-based policies, and identity policies combine to determine effective permissions.
  • Role templates and trust policies to simplify access management across services and teams.
  • Guidance on least-privilege patterns, access boundaries, and cross-account access optimizations.

Quick Start

Use a minimal trust policy and a least-privilege policy pair to grant your service access and run Access Analyzer to validate.

Frequently Asked Questions about iam

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do AWS IAM policies combine to determine effective permissions?

AWS IAM policy evaluation combines explicit Deny overrides, Service Control Policies, resource-based policies, and identity-based policies to calculate effective access. Understanding this layered evaluation logic prevents unintended privilege escalation.

How do I write a least-privilege IAM policy for cross-account access?

Writing a least-privilege IAM policy for cross-account access requires pairing a minimal trust policy with a scoped identity policy. This restricts cross-account role assumption to specific resources and actions, reducing broad access vulnerabilities.

What is the best way to validate IAM policies and trust policies?

Validating IAM policies and trust policies is best achieved using Access Analyzer. It reviews your permissions against external access and least-privilege patterns to detect resources shared outside your AWS account zone of trust.

When do I need permission boundaries and SCPs in AWS IAM?

You need permission boundaries and Service Control Policies when delegating AWS IAM administration safely. Boundaries cap maximum permissions an identity can receive, while SCPs guard organizational units, ensuring role-based access control stays within limits.

Does AWS Access Analyzer support explicit Deny and Allow logic validation?

AWS Access Analyzer supports validating explicit Deny and Allow logic within identity policies and resource policies. It evaluates your IAM configurations against external access patterns to confirm effective permissions match your intended access control.