aws-cloudformation-iam

Featured

Provides AWS CloudFormation patterns for IAM roles, policies, managed policies, permission boundaries, and trust relationships. Use when modeling least-privilege access, cross-account assumptions, service roles, or reusable IAM stacks that other CloudFormation templates consume.

DevOps & Infrastructure 330 stars 39 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AWS CloudFormation IAM Security ## Overview Use this skill to model IAM with CloudFormation in a way that stays secure, auditable, and maintainable. The most important design concerns are: - separating trust policies from permission policies - preferring roles over long-lived users wherever possible - keeping least-privilege boundaries readable and reusable Do not treat `SKILL.md` as a full IAM encyclopedia. Use the bundled references for larger policy examples and service-specific variants. ## When to Use - Creating IAM roles for Lambda, ECS, EC2, Step Functions, or other AWS services - Defining inline policies, managed policies, and permission boundaries in CloudFormation - Modeling cross-account assume-role access with constrained trust policies - Exporting IAM role ARNs or managed policy ARNs to downstream stacks - Reviewing wildcard permissions, boundary drift, or role replacement risk - Creating reusable IAM stacks for platform or application teams ## Instructions ### 1. Define the trust boundary first Identify who or what assumes the role (service principal, cross-account principal, or federated identity), then write the trust policy with explicit principals and conditions before adding permissions. ### 2. Grant the minimum permission set Use inline policies for role-specific access; use managed policies for shared patterns across principals. Scope actions and resources tightly, and use conditions where possible. ### 3. Apply permission boundaries for del...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
10 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category