A helper lib for lambda based Cloudformation's Custom Resources
Project description
# cfn-custom-resource
A Pythonic helper library for creation of Lambda backed Custom Resources for AWS CloudFormation.
The library handles all the CloudFormation Response details, allowing the user to focus on the logic of the Custom Resource.
# Usage
Creating basic Custom Resource is as simple as:
from cfn_custom_resource import lambda_handler, create, update, delete
@create()
def create(event, context):
resource_id, output_attributes = create_resource(event, context)
return resource_id, output_attributes
@update()
def update(event, context):
new_resource_id, output_attributes = update_resource(event, context)
return resource_id, new_resource_id
@delete()
def delete(event, context):
delete_resource(event, context)
return
Check [the wiki](https://bitbucket.org/atlassian/cfn-custom-resource/wiki/Home) for more details.
# Installation
To install simply use pip:
pip install cfn-custom-resource
# Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
# License
Copyright (c) 2018 Atlassian and others.
Apache 2.0 licensed, see [LICENSE.txt](LICENSE.txt) file.
A Pythonic helper library for creation of Lambda backed Custom Resources for AWS CloudFormation.
The library handles all the CloudFormation Response details, allowing the user to focus on the logic of the Custom Resource.
# Usage
Creating basic Custom Resource is as simple as:
from cfn_custom_resource import lambda_handler, create, update, delete
@create()
def create(event, context):
resource_id, output_attributes = create_resource(event, context)
return resource_id, output_attributes
@update()
def update(event, context):
new_resource_id, output_attributes = update_resource(event, context)
return resource_id, new_resource_id
@delete()
def delete(event, context):
delete_resource(event, context)
return
Check [the wiki](https://bitbucket.org/atlassian/cfn-custom-resource/wiki/Home) for more details.
# Installation
To install simply use pip:
pip install cfn-custom-resource
# Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
# License
Copyright (c) 2018 Atlassian and others.
Apache 2.0 licensed, see [LICENSE.txt](LICENSE.txt) file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cfn_custom_resource-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94452bfe9f5c125ae9ef73c44f8e8fdfb7435cba188ff781ec31f47484c75164 |
|
MD5 | fe6d82adcf075800468295039bc1c929 |
|
BLAKE2b-256 | 723835fbe42165cc6da6ed2653c14d622788f03f8a1658a885fe704ceb93e59f |