Page cover

1.3.3 - Terraform Variables

Last updated Jan 25, 2025

Youtube Video | ~24 min

https://www.youtube.com/watch?v=PBi0hHjLftk&list=PL3MmuxUbc_hJed7dXYoJw8DoCuVHhGEQb&index=13&pp=iAQB

✍️ In this video we will continue talking about terraform main.tf and now variable.tf. We will also learn about Big Query Datasets and using function file().

Terraform Big Query Dataset

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_dataset#example-usage---bigquery-dataset-basic

Main.tf

Append info to our previous main.tf from 1.3.2

◼️ Terminal run terraform apply, because we changed our main.tf file. You can now see this added into GCP.

Variables.tf

To use your variables.tf, we will need to modify the main.tf

Another example you cn add is using function file() in your variables.tf scripts

Resources

Full terraform code here:

Not found

🔗 https://registry.terraform.io/

Last updated