Send a response object to a custom resource by way of an Amazon S3 presigned URL
Project description
# cfnresponse
This package contains the Amazon Web Services (AWS) cfnresponse module which is available in Python AWS Lambda environments.
The code for this module can be found [in the Lambda Function Code documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-cfnresponsemodule) and in the [awslabs GitHub repo](https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py)
You can compare the code in awslabs with this pypi package with this command
` if [ "$(curl -s https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py | sha256sum)" = "$(curl -s https://raw.githubusercontent.com/gene1wood/cfnresponse/master/cfnresponse/__init__.py | sha256sum)" ]; then echo "Files match"; fi `
This module [used to use the vendored version of requests](https://github.com/awslabs/aws-cloudformation-templates/blob/dd484dd32680fcbfc52b34de45923f78b5626e39/aws/services/CloudFormation/MacrosExamples/StackMetrics/lambda/cfnresponse.py) provided by botocore but this changed in [April 2020](https://github.com/awslabs/aws-cloudformation-templates/commit/44b76a1f694f82eeee14fe804bf9dc973fdc2230#diff-f6c57142d56d8704aaf1d429ff1a06a6dd3f2ee6d80f0572ada8af010ff17124) to instead use urllib3 as [botocore.vendored.requests was removed](https://github.com/boto/botocore/pull/1829).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cfnresponse-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5bd763bf8267d27e9ef906a600e8d87a016defa399cfaf7308000d6ac98b82 |
|
MD5 | e4cc22e9d0b1ae734ca73a5f7937bd9d |
|
BLAKE2b-256 | eabcc1899356e54a8f20e116d1fdc6e99eeac044d2d14e8a717e123a5d8ed704 |