Skip to main content

Bootstrap your AWS CDK project resources by running CLI commands

Project description

Windsor

Bootstrap your AWS CDK project resources by running CLI commands.

Installing

pip install windsor

How to use

Start windsor by running the following command in an empty folder on your terminal.

windsor init

init will create a windsor configuration file inside the current folder. If a CDK project is not found windsor will create one.

After windsor is initialized, you can generate a lambda function by running.

windsor generate lambda-function --function-name HelloWorld

Inside the windsor.json there is parameter called lambda-function-default-runtime. This parameters sets the default lambda runtime to PYTHON_3_7, if you want to change this value use the parameter --runtime when running windsor generate lambda-function. The allowed values are:

PYTHON_3_7

NODEJS_10_X

After the command finishes your project will have a new file located under the folder constructs. This file contains a construct class that can be used to build the lambda function.

Windsor can manage CDK package versions by keeping they locked to the same version as @aws-cdk/core. Run the command windsor lock to verify all CDK packages and check their versions, if any package have a different version than CDK core windsor will reinstall it using a compatible version.

To install packages using always the same version, use command windsor install [package1] [package2].

Available resources

lambda-function

Built by Westpoint

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

windsor-0.5.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

windsor-0.5-py3-none-any.whl (13.9 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