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
Metadata
Release files for cdk-chalice 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdk-chalice-0.9.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_chalice-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / cdk-chalice-0.9.0.tar.gz
| Download URL | cdk-chalice-0.9.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66f4b61f769b2b2fedb762f10e59484d978c6bac727524f2ea1e907b4d7cc569
|
|
BLAKE2b-256 checksum How to use checksums |
b40d0f71341b59024677cdf531c6d8840e3150ee6569cf9e283e79a14aa84e37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cdk_chalice-0.9.0-py3-none-any.whl
| Download URL | cdk_chalice-0.9.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2174d10f0d3d7f25e44b00faa9020f801d9c4c96c3e4fdd8d7dbd3a2fa81ef9d
|
|
BLAKE2b-256 checksum How to use checksums |
d8f8e27bc7bcf1e740c6df874f5ea46c7435e43cb04ae8377326057d24c2f3d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|