cdk-iam-floyd
AWS IAM policy statement generator with fluent interface for AWS CDK
Decision gist · record as of 2026-08-14
Yes, if you use AWS CDK and want to reduce IAM policy boilerplate. The package has low install friction, active maintenance, and permissive licensing. Pin to version 0.507.0 or later and verify CDK compatibility (>= 2.30.0); accept that the API is still Beta and may change before 1.0.0. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS CDK v2.0.0 or later; version 0.507.0 requires CDK >= 2.30.0 per the compatibility matrix.
- Low install friction with a pure-Python wheel and five runtime dependencies.
- Actively maintained with recent commits; marked Beta but in use across the top 15000 PyPI packages.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license; dependencies bundled under MIT (regex-parser, common-substrings) and other licenses—review dependency licenses if redistribution is planned.
last release 2023-04-12 (1220 days) · last repo commit 2026-08-14 · 573 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,182 downloads/mo, #13,099 on PyPI
Alternatives
Verify before relying
pip install cdk-iam-floyd
from cdk_iam_floyd import iam
statement = iam.Ec2().allow().describe_instances().build()- Whether the package's Beta status (Development Status :: 4) impacts production readiness for your use case.
- Exact CDK version compatibility for version 0.507.0 beyond the stated >= 2.30.0 threshold.
What it is and what it does
cdk-iam-floyd is a Python wrapper around AWS IAM policy statement generation, designed to integrate directly into AWS CDK constructs. It provides a fluent, type-safe interface to build IAM policies by chaining method calls rather than hand-writing JSON—for example, calling `.allow().describe_instances()` on an EC2 service object generates the corresponding policy statement. The package maintains coverage of 353 AWS services with their associated actions, resource types, and condition keys, all generated from AWS documentation.
The package depends on aws-cdk-lib, constructs, jsii, publication, and typeguard to bridge Python and CDK's JavaScript runtime and provide type safety. It is marked as Beta and has not reached 1.0.0, meaning the API may change; the maintainer recommends pinning to an exact version. The project is actively maintained with recent commits and is used by a significant portion of the PyPI ecosystem.
Use it for
- Build least-privilege IAM policies in CDK stacks using method chaining instead of hand-written JSON.
- Generate policy statements for multiple AWS services with autocomplete and type hints in Python IDEs.
- Ensure policy syntax correctness by leveraging the fluent interface to catch errors at development time.
- Manage condition keys and resource types programmatically for complex multi-service policies.
- Integrate IAM policy generation into infrastructure-as-code pipelines without context switching to JSON.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use AWS CDK and want to reduce IAM policy boilerplate.
The package has low install friction, active maintenance, and permissive licensing. Pin to version 0.507.0 or later and verify CDK compatibility (>= 2.30.0); accept that the API is still Beta and may change before 1.0.0. No known vulnerabilities.
Install
cdk-iam-floyd on PyPI
Before you install
Low install friction with a pure-Python wheel and five runtime dependencies. Actively maintained with recent commits; marked Beta but in use across the top 15000 PyPI packages.
Requires AWS CDK v2.0.0 or later; version 0.507.0 requires CDK >= 2.30.0 per the compatibility matrix.
License in practice
Apache-2.0 permissive license; dependencies bundled under MIT (regex-parser, common-substrings) and other licenses—review dependency licenses if redistribution is planned.
Quickstart
pip install cdk-iam-floyd
from cdk_iam_floyd import iam
statement = iam.Ec2().allow().describe_instances().build()
Verify before relying
- Whether the package's Beta status (Development Status :: 4) impacts production readiness for your use case.
- Exact CDK version compatibility for version 0.507.0 beyond the stated >= 2.30.0 threshold.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release ~=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesaws-cdk-libconstructsjsiipublicationtypeguard |
| Maintenance | Actively maintained 1,220 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,182 / month, #13,099 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed |
Evidence: cdk_iam_floyd-0.507.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “CDK IAM policy builder”
- cdk-iam-floydGenerates AWS IAM policy statements with a fluent interface,…
- aws-cdk.aws-iamProvides Python constructs for defining AWS IAM roles, policies,…
- awacsawacs generates AWS IAM policy JSON from Python code, with built-in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also aws-cdk.aws-iam · policyuniverse · aws-cdk.aws-kms · awacs · iamdata · aws-cdk.aws-logs · aws-cdk.aws-neptune-alpha · cdk-cloudformation-datadog-monitors-monitor · aws-cdk.cx-api · aws-cdk.aws-ecr