Which of the following is allowed as a Terraform variable name?
Which of the following is allowed as a Terraform variable name?
B
Reference:
https://www.terraform.io/docs/language/values/variables.html
B is correct answer : name "The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals." https://www.terraform.io/language/values/variables
The name of a variable can be any valid identifier except the following: source , version , providers , count , for_each , lifecycle , depends_on , locals . These names are reserved for meta-arguments in module configuration blocks, and cannot be declared as variable names. B
name is OK
name is right
B is correct one.
B is correct. name