prettier output
This commit is contained in:
		
							parent
							
								
									edba3a8207
								
							
						
					
					
						commit
						1920af5bc4
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,3 +1,13 @@
 | 
				
			||||||
output "lb-ip" {
 | 
					output "vms" {
 | 
				
			||||||
  value = yandex_lb_network_load_balancer.balancer1.listener
 | 
					  value = {
 | 
				
			||||||
 | 
					    for name, vm in yandex_compute_instance.vm : vm.name => vm.network_interface.0.nat_ip_address
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					output "lbs" {
 | 
				
			||||||
 | 
					  value = {
 | 
				
			||||||
 | 
					    for listener in yandex_lb_network_load_balancer.balancer1.listener : listener.name => [
 | 
				
			||||||
 | 
					      for spec in listener.external_address_spec : spec.address
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue