Student Reviews
( 5 Of 5 )
1 review
Video of Input Variables in Terraform Terraform Tutorial #7 in Terraform course by Will Brock channel, video No. 8 free certified online
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/terraform-course-examples
Terraform documentation on varaibles
https://www.terraform.io/docs/configuration/variables.html