Terraform

What ways are there to pass values for input variables?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • Using -var option in the CLI
  • Using a file by using the -var-file option in the CLI
  • Environment variable that starts with TF_VAR_

If no value given, user will be prompted to provide one.