This is a basic Hello World starter template that utilises terraform for provisioning cloud resources. It is an opionanted starter which uses TypeScript, ESlint, Prettier and Husky.
Currently being consumed by these project(s) of mine, will try and keep this list updated
- Terraform
- Typescript
- ESLint
- Prettier
- Husky
- API Gateway
- Lambda
- KMS Setup
- Run
yarn lintto lint TS code using both ESLint and Prettier working together - Run
yarn script:build-dependency-layerthis will run a bash script to zip up production dependencies and add them to the lamba as a layer - Run
yarn buildto run TSC to compile TS code to plain JS - Run
yarn cleanupto remove generated files after deployment steps - Run
yarn tf:initto get aws provider plugin downloaded - Run
yarn tf:planto see changes that will be made - Run
yarn tf:applyto actually make those changes to your provider - Visit AWS and see all your services provisioned via terraform
- Run
yarn tf:destroyto destroy all the services that were built
You can also simply call yarn deploy:all to both zip up an archive and provision the resources together. Similarly you could run yarn update:all to destroy all resources and re-provision them.