CloudFormation CLI (cfn-cli) is the official AWS tool for building, testing, and publishing AWS CloudFormation resource type providers, modules, and hooks. The current version is 0.2.39. It allows developers to create custom CloudFormation resource types using Java or Python, run contract tests, and submit them to the CloudFormation registry. The release cadence is irregular, with 3-4 minor releases per year.
pip install cloudformation-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a CloudFormation resource type project and implement a basic resource handler using the Python library.
Install Docker Desktop and start the daemon before running `cfn test`.
Run `aws configure` or set environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION.
Ensure you are in the project root with a valid `resource-role.yaml` or schema file before running `cfn generate`.
Upgrade to Python 3.7 or later (recommend 3.9+).