Complete the code to define a tuple variable with two string elements.
variable "example" { type = tuple[[1]] }
The tuple type requires specifying each element type separated by commas inside square brackets. Here, two strings are defined.
Complete the code to define a tuple variable with a string and a number.
variable "mixed" { type = tuple[[1]] }
Tuple types list element types separated by commas inside square brackets. 'string, number' is correct.
Fix the error in the tuple type definition to accept a string and a boolean.
variable "settings" { type = tuple[[1]] }
The correct tuple syntax uses square brackets with types separated by commas. 'string, bool' is correct.
Fill both blanks to define a tuple with a number and a list of strings.
variable "complex" { type = tuple[[1], [2]] }
The tuple has two elements: a number and a list of strings. Use 'number' and 'list(string)'.
Fill all three blanks to define a tuple with a string, a bool, and a map of strings.
variable "full" { type = tuple[[1], [2], [3]] }
The tuple contains a string, a boolean, and a map of strings. Use 'string', 'bool', and 'map(string)'.