AWS CDK construct for AWS Chalice
Project description
cdk-chalice
AWS CDK construct for AWS Chalice
This library allows to include an AWS Chalice application into a broader AWS Cloud Development Kit (AWS CDK) application.
The following approach to AWS CDK and AWS Chalice interoperability is taken by the library:
-
Manually create Chalice application (
chalice new-project) with default "dev" stage in.chalice/config.json.cdk-chalicelibrary could perform this Chalice application scaffolding automatically - create new project, or skip this step if project already exists in the target directory (this ischalice new-projectbehavior). The choice to keep this step manual (for now) was made to hopefully make adoption easier for developers who already have existing Chalice projects. -
Manually create CDK application (
cdk init [ARGS]) -
Use
cdk_chalice.Chaliceclass to generate stage per CDK stack in.chalice/config.jsonand runchalice package. This is the main purpose ofcdk-chalice- allow passing CDK tokens for resources, such as DynamoDB table, to SAM template generated bychalice package(see example here), and also to automate the packaging process itself.
If AWS Chalice doesn't support certain options through its configuration mechanism, there are two ways to address this:
- Open an issue for AWS Chalice
- Customize the resources after they have been imported into the CDK stack.
cdk-chaliceuses AWS CDKcloudformation-includemodule to enable customization. Seecdk-chaliceAPI documentation for example and additional details.
The API documentation and usage example are available at https://cdk-chalice.softwhat.com/
Installation
Install and update using pip:
pip install -U cdk-chalice
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdk-chalice-0.9.0.tar.gz.
File metadata
- Download URL: cdk-chalice-0.9.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66f4b61f769b2b2fedb762f10e59484d978c6bac727524f2ea1e907b4d7cc569
|
|
| MD5 |
a2ceea56813057d94976fd9d4db29d61
|
|
| BLAKE2b-256 |
b40d0f71341b59024677cdf531c6d8840e3150ee6569cf9e283e79a14aa84e37
|
File details
Details for the file cdk_chalice-0.9.0-py3-none-any.whl.
File metadata
- Download URL: cdk_chalice-0.9.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2174d10f0d3d7f25e44b00faa9020f801d9c4c96c3e4fdd8d7dbd3a2fa81ef9d
|
|
| MD5 |
83a2e9dbe2f78a6b9bc72ada053ab264
|
|
| BLAKE2b-256 |
d8f8e27bc7bcf1e740c6df874f5ea46c7435e43cb04ae8377326057d24c2f3d2
|