I can create a service like this:
resource "consul_service" "google" {
name = "google"
node = "${consul_node.compute.name}"
port = 80
tags = ["tag0"]
}
But how to add weights, using consul register service <file>
this works:
service {
name = "test"
address = "1.1.1.1"
port = 443
weights = {
passing = 80,
warning =1
}
}