Input Variables in Terraform | Terraform Tutorial | #7

Published: 19 June 2020
on channel: Will Brock
47,165
720

Terraform variables are like variables in any other programming language. Input variables allow you to pass in date to your configurations or modules making them more dynamic. Variables can be set in a number of different ways but the most common that I use is setting them in a specific file for variables.

In this video we'll modify the existing configuration that we have to allow us to dynamically set the configuration.

Declaring a variable
Using a variables.tf file
Variable types - string, number, bool, list, map, object
Using variables
Different ways of setting variables like with files, command line, environment variables, defaults
Variable precedence

Code Examples:
https://github.com/WillBrock/terrafor...

Terraform documentation on varaibles
https://www.terraform.io/docs/configu...


Watch video Input Variables in Terraform | Terraform Tutorial | #7 online without registration, duration hours minute second in high quality. This video was added by user Will Brock 19 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 47,165 once and liked it 720 people.