Notifications
Clear all
Topic starter
What is the command you can use to set an environment variable named "var1"of type String?
- A . export TF_VAR_VAR1
B. set TF_VAR_var1
C. variable "var1" { type = "string"}
D. export TF_VAR_var1
Suggested Answer: D
Explanation:
The environment variable must be in the format TF_VAR_name, so for the QUESTION NO:
TF_VAR_var1 is the correct choice.
https://www.terraform.io/docs/commands/environment-variables.html#tf_var_name
Explanation:
The environment variable must be in the format TF_VAR_name, so for the QUESTION NO:
TF_VAR_var1 is the correct choice.
https://www.terraform.io/docs/commands/environment-variables.html#tf_var_name
Posted : 09/02/2023 9:18 am