Setting a Variable Using a File
We will learn how to set variables in Terraform using a file.
We'll cover the following
Another way to set the value of variables is by using a file. We’ll create a new file in the project called terraform.tfvars
. We are going to use the same Terraform code in the main.tf
that we did before.
Inside the terraform.tfvars
file we’ll place the following:
Get hands-on with 1400+ tech skills courses.