DEV Community


Terraform | terraform.tfvars | Terraform command line variables

jhooq profile image Rahul Wagh Originally published at ・1 min read

Terraform is OpenSource infrastructure as a code software tool. With the help of Terraform you can provision infrastructure on cloud platform such AWS(, Google Cloud(, Azure(, DigitalOcean(, OpenShift( and many provider

But before you start working with Terraform you must understand different types of variables provided by the terraform -

  1. - This file is used for declaring and defining variables
  2. terraform.tfvars - It is also used for declaring and defining variables but can be used for multiple environment like staging, production
  3. commandline vars - If you want to pass the variable using terraform commandline

Discussion (0)

Forem Open with the Forem app