DEV Community

loading...

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

Rahul Wagh
#Techblogger #Contentcreator #programmer #YouTuber For more details visit : Blog - https://www.jhooq.com YouTube - https://www.youtube.com/channel/UC7p4oXcPbgk_yTSHK7QlkSg
Originally published at jhooq.com ・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(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

Discussion (0)