Skip to content

amiltimore2016/typescript-lamba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Layer


Stability: Stable

This is a stable example. It should successfully build out of the box

This example is built on Construct Libraries marked "Stable" and does not have any infrastructure prerequisites to build.


Overview

CDK example to create a NodeJS Lambda that uses a Lambda Layer. The example demonstrates use of Lambda Layer NodeJS folder structure, and use of L2 Constructs for deploying and using Lambda Layer with a function in CDK Typescript.

Build and Deploy

The cdk.json file tells the CDK Toolkit how to execute your app.

Before getting ready to deploy, ensure the dependencies are installed by executing the following:

$ npm install -g aws-cdk
$ npm install

CDK Deploy

A Lambda layer is a .zip file archive that can contain additional code or data. When deployed, CDK creates a layer .zip asset to be stored in a staging bucket managed by CDK. To enable this the AWS account being used needs to be bootstrapped.

With default profile,

$ cdk bootstrap

With specific profile,

$ cdk bootstrap --profile test

With the bootstrap complete, we are ready to deploy the lambda function and lambda layer.

$ cdk deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors