I am trying to add the type but its not picking it up I am confused how to give the boot_disk and 'network_interface' type if I created the type as object.
Error : │ This default value is not compatible with the variable's type constraint: element "tags": string required.
variable worker {
type = map(string)
default = {
worker_count = 2
name = "k3s-master"
machine_type = "n1-standard-1"
tags = ["k3s", "k3s-master"]
zone = "us-central1-a"
boot_disk = {
initialize_params = {
image = "debian-9-stretch-v20200805"
}
}
network_interface = {
network = "default"
}
}
}