Skip to main content

Utility to facilitate deploying Chalice via the cdk

Project description

cdk-chalice-lite

Like cdk-chalice, but different.

Usage

from aws_cdk import core

from cdk_chalice_lite import Chalice


class MyStack(core.Stack):

    def __init__(self, scope, id, chalice_app_id, directory, **kwargs):
        super().__init__(scope, id, **kwargs)

        # note, the directory parameter can be either the root directory
        # of your chalice app i.e. where app.py is
        # or it can be the directory of the output of `chalice package`

        # if you choose the former, you can override the values in
        # .chalice/config.json via the stage_config and lambdas_config
        # parameters to the Chalice constructor

        self.chalice = Chalice(self, chalice_app_id, directory)




app = core.App()

my_stack = MyStack(app, 'my-stack')

app.synth()

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

cdk-chalice-lite-0.1.7.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

cdk_chalice_lite-0.1.7-py3-none-any.whl (7.0 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