--- id: cfnresponse version: "1.1.5" license: unclear license_treatment: permissive maintenance: active --- # cfnresponse — Send a response object to a custom resource by way of an Amazon S3 presigned URL License: permissive · Maintenance: active · Downloads: 358.2K/mo ## What it is and what it does cfnresponse is a Python module that handles the response protocol for AWS CloudFormation custom resources. When you create a custom resource in CloudFormation backed by a Lambda function, that Lambda needs to signal back to CloudFormation whether the operation succeeded or failed by posting to a presigned S3 URL. This package provides the send() function and response status constants (SUCCESS, FAILED) to handle that communication. The module is a standalone PyPI package version of code that AWS provides natively in Lambda environments. It depends only on urllib3 for HTTP operations. It's useful for local development, testing, or when you want explicit control over the cfnresponse implementation rather than relying on the built-in Lambda version. Use it for: - Local testing of Lambda custom resource handlers before deployment to CloudFormation. - Explicit control over cfnresponse behavior in Lambda functions handling CloudFormation custom resources. - Development environments where you need to mock or override the native Lambda cfnresponse module. - Ensuring version consistency across multiple Lambda functions or deployment pipelines. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Sends response objects to AWS CloudFormation custom resources via S3 presigned URLs, enabling Lambda functions to signal success or failure back to CloudFormation stacks. Yes, if you are developing or testing AWS CloudFormation custom resources in Lambda and need cfnresponse outside the native Lambda runtime. No, if you only deploy to Lambda—the module is already available there. The package is stable, actively maintained, has no known vulnerabilities, and carries a permissive license. ## Install pip install cfnresponse uv add cfnresponse poetry add cfnresponse ## Installing cfnresponse Before you install: Low install friction with a single lightweight dependency (urllib3). Actively maintained with recent commits; last release was 741 days ago but the repository shows ongoing activity. License in practice: Licensed under Apache Software License (permissive), imposing no significant restrictions on use or redistribution in most contexts. Quickstart: pip install cfnresponse import cfnresponse def handler(event, context): try: # Your custom resource logic here cfnresponse.send(event, context, cfnresponse.SUCCESS, {'key': 'value'}) except Exception as e: cfnresponse.send(event, context, cfnresponse.FAILED, {}) Designed for AWS Lambda environments; requires CloudFormation custom resource event structure with ResponseURL, StackId, RequestId, and LogicalResourceId fields. Verify before relying: - Whether this package is necessary outside Lambda (native cfnresponse is built into Lambda runtime). - Specific use cases for local development or non-Lambda environments where urllib3 would be the primary value-add. ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 358.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags cloudformation lambda response, cfn custom resource callback, aws lambda cfnresponse, cloudformation stack signal, lambda custom resource handler, cfnresponse module, cloudformation presigned url response, aws-lambda, cloudformation, infrastructure-as-code [View on SkillFed](https://skillfed.io/packages/cfnresponse) · [View on PyPI](https://pypi.org/project/cfnresponse/)