Skip to content

david-perez/lambda-pr-491

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

lambda-cdk

Build the CDK project

cd cdk
npm install
npm run build

Deploy

Build the Rust Lambda function in release mode:

cd rust
cargo build --release

The binary should appear under target/release. It should be named bootstrap. Copy it over to the target/cdk/release directory, where CDK will look into:

mkdir --parents target/cdk/release
cp target/release/bootstrap target/cdk/release

The first time you deploy the function, you need to invoke cdk bootstrap. This is to deploy the CDK toolkit stack into an AWS environment, and has nothing to do with the fact that our Rust binary is also named bootstrap.

cd cdk
cdk bootstrap

To deploy the Lambda function stack, run this command:

cdk deploy --all

Destroy

To destroy the stack:

cdk destroy --all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published