Notifications
Clear all
Topic starter
03/07/2022 2:52 pm
Which of the following variable definition files will terraform load automatically?
- A . terraform.tfvar
- B . Any files with names ending in .auto.tfvars.json
- C . terraform.tfvars
- D . terraform.tfvars.json
Suggested Answer: B,C,D
Explanation:
Terraform also automatically loads a number of variable definitions files if they are present:
Files named exactly terraform.tfvars or terraform.tfvars.json. Any files with names ending in .auto.tfvars or .auto.tfvars.json.
https://www.terraform.io/docs/configuration/variables.html https://www.terraform.io/docs/configuration/variables.html#variable-definitions-tfvars-files
Explanation:
Terraform also automatically loads a number of variable definitions files if they are present:
Files named exactly terraform.tfvars or terraform.tfvars.json. Any files with names ending in .auto.tfvars or .auto.tfvars.json.
https://www.terraform.io/docs/configuration/variables.html https://www.terraform.io/docs/configuration/variables.html#variable-definitions-tfvars-files