How can you provide variables using file to Terraform CLI without the need to specify the name of the variable definition file?

Experience Level: Junior
Tags: Terraform

Answer

Create a file terraform.tfvars or any .auto.tfvars. Terraform CLI automatically loads variables from variable definition files with these names.

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself