Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. CDK
  3. cdk-iam-floyd

cdk-iam-floyd

Apache-2.0TypeScriptv0.854.0

A fluent interface generator for AWS IAM policy statements with comprehensive AWS service coverage.

Visit WebsiteGitHubGitHub
570 stars20 forks0 contributors

What is cdk-iam-floyd?

IAM Floyd is an open-source library that generates AWS IAM policy statements using a fluent, type-safe interface. It solves the problem of error-prone manual IAM policy creation by providing comprehensive AWS service coverage with compile-time validation. Developers can construct complex permissions programmatically with IDE auto-completion support.

Target Audience

AWS developers and infrastructure engineers working with IAM policies, particularly those using AWS CDK or the AWS SDK in TypeScript/JavaScript projects.

Value Proposition

Developers choose IAM Floyd for its intuitive fluent interface that reduces IAM policy errors, its comprehensive coverage of AWS services and actions, and its seamless integration with AWS CDK for infrastructure-as-code workflows.

Overview

AWS IAM policy statement generator with a fluent interface, for TypeScript, JavaScript, Python, Java, C# and Go.

Use Cases

Best For

  • Generating complex IAM policies with multiple services and conditions
  • AWS CDK projects needing type-safe IAM policy construction
  • Teams wanting to reduce IAM policy misconfiguration errors
  • Automating IAM policy generation in CI/CD pipelines
  • Projects requiring comprehensive AWS service permission coverage
  • Developers seeking IDE auto-completion for IAM actions and resources

Not Ideal For

  • Projects not using TypeScript or JavaScript, as it's a language-specific library
  • Teams preferring manual JSON IAM policy writing for full control and minimal dependencies
  • Environments using Terraform or raw CloudFormation without CDK integration, where library benefits are limited
  • Static IAM policies that rarely change, making dynamic generation overhead unnecessary

Pros & Cons

Pros

Comprehensive AWS Coverage

Supports 447 services, 20,549 actions, and thousands of resource/condition keys, ensuring broad compatibility with AWS permissions.

Type-Safe Policy Generation

Provides compile-time validation with TypeScript, reducing common IAM errors through auto-completion and strict typing.

Fluent Interface Design

Chainable methods make policy construction intuitive and readable, as demonstrated in the README's auto-completion demo.

AWS CDK Integration

Dedicated cdk-iam-floyd package extends CDK's PolicyStatement class, seamlessly fitting into infrastructure-as-code workflows.

IDE Auto-Completion Support

Enhances development speed with IDE integration, reducing the need for constant AWS documentation lookups.

Cons

API Instability and Breaking Changes

The project is pre-1.0 with an experimental label, requiring exact version pinning due to frequent API changes, as warned in the README.

CDK Compatibility Gaps

The compatibility matrix shows periods with no compatible versions for certain CDK releases, indicating maintenance challenges and potential upgrade hurdles.

Potential Over-Engineering

For simple or static IAM policies, the library adds unnecessary complexity compared to writing minimal JSON directly.

Dependency on AWS Documentation

Generated from AWS docs, so updates might lag behind AWS service changes, risking outdated or incomplete policy coverage.

Frequently Asked Questions

Quick Stats

Stars570
Forks20
Contributors0
Open Issues1
Last commit1 day ago
CreatedSince 2020

Tags

#generator#hacktoberfest#cdk#fluent-interface#jsii#csharp#npm-package#java#aws-sdk#infrastructure-as-code#typescript#aws-iam#iam-policy#iam#golang#aws#aws-cdk#policy-generation#cloud-security

Built With

T
TypeScript

Links & Resources

Website

Included in

IAM2.2kCDK2.1k
Auto-fetched 12 hours ago

Related Projects

Policy SentryPolicy Sentry

IAM Least Privilege Policy Generator

Stars2,174
Forks159
Last commit10 days ago
cdk-cloudfront-authorizationcdk-cloudfront-authorization

A collection of higher-level reusable cdk constructs

Stars636
Forks100
Last commit2 years ago
IAMbicIAMbic

IAMbic is Version-Control for IAM. It centralizes and simplifies cloud access and permissions. It maintains an eventually consistent, human-readable, bi-directional representation of IAM in Git.

Stars306
Forks27
Last commit2 years ago
aws-firewall-factoryaws-firewall-factory

Enhance the security of your web applications effortlessly with AWS Firewall Factory. Safeguard your valuable assets through seamless WAF deployment, updates, and staging, all centrally managed with AWS Firewall Manager.

Stars256
Forks26
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub