Which of the following is the correct way to pass the value in the variable num_servers into a module with the input server?
Which of the following is the correct way to pass the value in the variable num_servers into a module with the input server?
In HashiCorp Configuration Language version 2 (HCL2), the correct syntax to refer to a variable is by using the format 'var.variable_name'. Therefore, 'servers = var.num_servers' is the proper way to pass the value in the variable num_servers into a module.
same question as question 31
D. servers = var.num_servers (HCL2 syntax)