Рет қаралды 46,682
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:
github.com/Wil...
Terraform documentation on varaibles
www.terraform....