Skip to main content

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.

Project details


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

cfn_custom_resource-1.0.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page