aws-iam

Generate least-privilege AWS IAM policies, roles, users, and permission boundaries.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill aws-iam-sitharaj88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-iam
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/aws-iam
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill aws-iam-sitharaj88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users configure AWS Identity and Access Management (IAM) resources, ensuring least-privilege access and robust security for cloud infrastructure.

Core Features & Use Cases

  • Policy Generation: Creates least-privilege IAM policies for various AWS services.
  • Role Configuration: Designs and generates IAM roles with appropriate trust policies and permissions.
  • Security Best Practices: Enforces principles like specific actions, resource scoping, and conditional access.
  • Use Case: Generate an IAM role for a Lambda function that needs to read specific objects from an S3 bucket and write logs to CloudWatch, adhering to the principle of least privilege.

Quick Start

Use the aws-iam skill to generate a least-privilege IAM policy for a Lambda function that needs to read from an S3 bucket named 'my-data-bucket'.

Frequently Asked Questions about aws-iam

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

FAQPage Schema
How do I create an IAM policy for a Lambda function that needs S3 read access?

To create an IAM policy for Lambda, you define specific actions like s3:GetObject and scope them to the exact resource ARN of your S3 bucket. This enforces least-privilege access by granting only the permissions required to read the data.

What is the best way to configure least-privilege IAM roles for EC2 or ECS?

Configuring least-privilege IAM roles for EC2 or ECS requires specifying exact AWS service actions and resource ARNs rather than using wildcards. This approach limits the principal's permissions to only what is necessary for its operational tasks.

How do I enforce MFA conditions in an AWS IAM security policy?

You enforce MFA in an AWS IAM security policy by adding condition keys like aws:MFA to the policy statement. This requires users to authenticate with multi-factor authentication before accessing the specified AWS resources.

Can I restrict IAM role trust policies using aws:PrincipalOrgID?

Yes, you can restrict IAM role trust policies using the aws:PrincipalOrgID condition key. This limits cross-account role assumption to principals within your AWS Organization, securing access across multiple accounts.

How do I set permission boundaries for human users in AWS IAM?

Setting permission boundaries for human users in AWS IAM involves attaching a managed policy that defines the maximum allowed permissions. This ensures users cannot escalate privileges beyond their defined boundary even if granted broader access.

Does this approach support configuring IAM permissions for CloudWatch logging?

Yes, this approach supports configuring IAM permissions for CloudWatch logging by generating policies with actions like logs:CreateLogGroup. It scopes these permissions to the specific CloudWatch resource ARNs needed for the service principal.