Starter template for AWS Lambda using Node.js, TypeScript, Terraform
When you surround an army, leave an outlet free. — Sun Tzu
Install the following tools before getting started:
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
Use the shell script to create the lambda package and deploy to AWS:
$ ./deploy.sh
Invoke the lambda from AWS Management Console. You can use the below example payload:
{
"name": "Patrick"
}