Skip to content

salvatorecordiano/aws-lambda-typescript-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Boilerplate (TypeScript)

  • Run make setup to install dependencies
  • Run make container-bash to use bash inside container
  • Run make build to create a build

Deploy

If you want to create and deploy your Lambda using aws-cli

  • Install aws-cli
  • Read docs and run aws configure to setup your environment

Create Lambda function

aws lambda create-function --function-name aws-lambda-typescript-boilerplate \
--zip-file fileb://deploy.zip --handler index.handler --runtime nodejs10.x \
--role arn:aws:iam::YOUR_ROLE_HERE

Update Lambda function

aws lambda update-function-code --function-name aws-lambda-typescript-boilerplate --zip-file fileb://deploy.zip