Terraform Over A Weekend — Deployments to AWS

Further Notes:

Dynamic Blocks
These are a way we can use reusable code in Terraform

  • Terraform.tfvars
  • Terraform.tfvars.json
  • Any.auto.tfvars
  • Any -var or -var-file options
  • To create a new workspace (i.e dev , test, staging, prod etc) — Type in “terraform workspace new dev”
  • To select a workspace type in “terraform workspace show”
  • To swap the env you are in type in “terraform workspace select”
  • To delete a workspace type in “terraform delete dev”

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store