Skip to content

patrickpang/mangonel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mangonel

Starter template for AWS Lambda using Node.js, TypeScript, Terraform

When you surround an army, leave an outlet free. — Sun Tzu

Mangonel Illustration

Setup

Install the following tools before getting started:

Initialize

You only have to do this once after cloning.

Initialize AWS credentials:

$ aws configure

Initialize Node.js workspace:

$ cd hello-world-lambda
$ pnpm install

Initialize Terraform workspace:

$ cd infra
$ terraform init

Deploy

Use the shell script to create the lambda package and deploy to AWS:

$ ./deploy.sh

Test

Invoke the lambda from AWS Management Console. You can use the below example payload:

{
  "name": "Patrick"
}

About

Throw your TypeScript function onto AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published