Skip to content

rahman95/terraform-lambda-typescript-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

36190c5 Β· Oct 10, 2024

History

31 Commits
Jan 2, 2020
Dec 30, 2019
Jan 2, 2020
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Oct 10, 2024
Jan 2, 2020
Dec 30, 2019
Oct 10, 2024

Repository files navigation

Terraform Lambda Typescript Starter πŸ—Ξ»

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.

Usage πŸ”¬

Currently being consumed by these project(s) of mine, will try and keep this list updated

Tech 🧰

  • Terraform
  • Typescript
  • ESLint
  • Prettier
  • Husky

What gets provisioned? πŸ”

  • API Gateway
  • Lambda
  • KMS Setup

Deployment πŸš€

  • Run yarn lint to lint TS code using both ESLint and Prettier working together
  • Run yarn script:build-dependency-layer this will run a bash script to zip up production dependencies and add them to the lamba as a layer
  • Run yarn build to run TSC to compile TS code to plain JS
  • Run yarn cleanup to remove generated files after deployment steps
  • Run yarn tf:init to get aws provider plugin downloaded
  • Run yarn tf:plan to see changes that will be made
  • Run yarn tf:apply to actually make those changes to your provider
  • Visit AWS and see all your services provisioned via terraform
  • Run yarn tf:destroy to 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.

About

Terraform Lambda Typescript Starter Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published