DEV Community

Rahul Wagh
Rahul Wagh

Posted on • Originally published at

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(, 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. 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

Top comments (0)