Comments 4
UFO just landed and posted this here
Получение айпи адресса балансировщика на тф 15
"${[for s in yandex_lb_network_load_balancer.default.listener: s.external_address_spec.*.address].0[0]}"
0
Кто-нибудь подскажите тестирую вот этот код на terraform 1.0
https://git.cloud-team.ru/lections/kubernetes_setup/blob/master/terraform/k8s-cluster.tf#L380
Но получаю ошибку:
╷
│ Error: Invalid index
│
│ on k8s-cluster.tf line 389, in output "load_balancer_public_ip":
│ 389: value = yandex_lb_network_load_balancer.k8s-load-balancer.listener.*.external_address_spec.0.address
│
│ Elements of a set are identified only by their value and don't have any separate index or key to select with, so it's only possible to perform operations across all
│ elements of the set.
0
Sign up to leave a comment.
Articles
Change theme settings
Деплой распределенных сервисов в Яндекс.Облаке на примере Grafana