Which of the following is allowed as a Terraform variable name?
Which of the following is allowed as a Terraform variable name?
According to the Terraform documentation, the name of a variable can be any valid identifier except certain reserved words, specifically source, version, providers, count, for_each, lifecycle, depends_on, and locals. Since 'name' is not listed among the reserved words, it is allowed as a Terraform variable name.
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. name
B is correct one.