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 configureInitialize Node.js workspace:
$ cd hello-world-lambda
$ pnpm installInitialize Terraform workspace:
$ cd infra
$ terraform initUse the shell script to create the lambda package and deploy to AWS:
$ ./deploy.shInvoke the lambda from AWS Management Console. You can use the below example payload:
{
"name": "Patrick"
}