crhelper
crhelper simplifies authoring CloudFormation Custom Resources
Decision gist · record as of 2026-08-14
Yes, if you are writing CloudFormation custom resources in Lambda. The library eliminates error-handling boilerplate and ensures CloudFormation receives responses reliably. However, note that maintenance is dormant (654 days since last release); verify compatibility with your Python version and current boto3/CloudFormation APIs before adopting in new projects, and monitor for any security updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Intended for AWS Lambda functions invoked by CloudFormation; requires appropriate IAM permissions if polling is enabled (lambda:AddPermission, events:PutRule, etc.).
- Low install friction with no runtime dependencies.
- Maintenance is dormant—last release was 654 days ago, though the repository remains active with 384 stars and no recent commits.
License · maintenance · safety
Apache2 (permissive) — Licensed under Apache 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
last release 2024-10-29 (654 days) · last repo commit 2024-10-29 · 384 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 482,836 downloads/mo, #6,420 on PyPI
Alternatives
Verify before relying
pip install crhelper
from crhelper import CfnResource
helper = CfnResource()
@helper.create
def create(event, context):
helper.Data.update({"key": "value"})
return "ResourceId"
def handler(event, context):
helper(event, context)- Whether the package works with Python versions beyond 3.6 and 3.7 (classifiers list only those two, but requires_python is unspecified).
- Current compatibility with recent boto3 versions and CloudFormation API changes since the last release 654 days ago.
What it is and what it does
crhelper is a decorator-based library that wraps CloudFormation custom resource handlers to eliminate boilerplate and ensure robust error handling. It guarantees CloudFormation receives a response even when exceptions occur, catches Lambda timeouts, and provides structured JSON logging with request and stack IDs for tracing. The library supports long-running operations via polling, which re-invokes the Lambda function every 2 minutes until completion, bypassing the 15-minute Lambda timeout limit.
You use it by decorating handler functions for create, update, and delete lifecycle events, then calling the helper instance in your main handler. It manages response formatting, error propagation to CloudFormation stack events, and optional CloudWatch Events scheduling for polling workflows. Static typing is supported for mypy compatibility.
Use it for
- Create custom CloudFormation resources that provision third-party APIs or non-AWS services without writing response boilerplate.
- Implement long-running provisioning tasks that exceed Lambda's 15-minute timeout using the polling decorator pattern.
- Ensure CloudFormation stacks fail gracefully with meaningful error messages when custom resource handlers encounter exceptions.
- Trace CloudFormation events through Lambda logs using structured JSON output with stack and request IDs.
- Deploy infrastructure-as-code patterns that require custom logic beyond CloudFormation's native resource types.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are writing CloudFormation custom resources in Lambda.
The library eliminates error-handling boilerplate and ensures CloudFormation receives responses reliably. However, note that maintenance is dormant (654 days since last release); verify compatibility with your Python version and current boto3/CloudFormation APIs before adopting in new projects, and monitor for any security updates.
Install
crhelper on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 654 days ago, though the repository remains active with 384 stars and no recent commits.
Intended for AWS Lambda functions invoked by CloudFormation; requires appropriate IAM permissions if polling is enabled (lambda:AddPermission, events:PutRule, etc.).
License in practice
Licensed under Apache 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install crhelper
from crhelper import CfnResource
helper = CfnResource()
@helper.create
def create(event, context):
helper.Data.update({"key": "value"})
return "ResourceId"
def handler(event, context):
helper(event, context)
Verify before relying
- Whether the package works with Python versions beyond 3.6 and 3.7 (classifiers list only those two, but requires_python is unspecified).
- Current compatibility with recent boto3 versions and CloudFormation API changes since the last release 654 days ago.
Package facts
| License | Apache2 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 654 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 482,836 / month, #6,420 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: crhelper-2.0.12-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 › “cloudformation custom resource lambda”
- crhelperSimplifies writing CloudFormation custom resources by handling…
- cfnresponseSends response objects to AWS CloudFormation custom resources via S3…
- aws-cdk.custom-resourcesProvides a framework for implementing AWS CloudFormation custom…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also aws-cdk.custom-resources · cloudformation-cli · cfnresponse · cfn-flip · awslabs.aws-iac-mcp-server · aws-cdk.aws-cloudformation · kappa · aws-cdk.cx-api · aws-cdk.aws-logs · cfn-lint