DEV Community

Rahul Wagh
Rahul Wagh

Posted on • Originally published at jhooq.com

Terraform Input Variable (string, number, bool, list, map...) | How to use Terraform Input Variable

Terraform is OpenSource infrastructure as a code software tool. With the help of Terraform you can provision infrastructure on cloud platform such AWS(https://aws.amazon.com/), Google Cloud(https://cloud.google.com/), Azure(https://azure.microsoft.com/en-us/), DigitalOcean(https://www.digitalocean.com/), OpenShift(https://www.openshift.com/) and many more...cloud provider

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

  1. string - It will hold string values
  2. number - It will hold number values
  3. bool - It will hold boolean value .i.e. true, false
  4. list - It is used for the collection of values. Collection can be of type string, number
  5. map - When you need to create key-value pair then need to use map variable type

Oldest comments (0)