This is a demo repo on seting up different AWS services with Terraform and writing lambdas in Typescript. The AWS services incuded are AWS SQS, AWS EventBridge, AWS Kinesis, AWS DynamoDB, AWS API Gateway and AWS Lambda.
It is assumed that Terraform and Nodejs is already installed on your computer and that you can deploy to an AWS Account using Terraform.
$ npm i
$ npm run apply # runs terraform init, format, validate, plan and apply
$ npm run deploy # builds the code and runs terraform apply command
$ npm run tf:destroy
$ npm run test
$ npm run tf:init # terraform init
$ npm run tf:fmt # terraform format
$ npm run tf:validate # terraform validate
$ npm run tf:plan # terraform plan
$ npm run tf:apply # terraform apply
$ npm run tf:destroy # terraform destroy