19 lines
480 B
Terraform
19 lines
480 B
Terraform
|
# Copyright (c) HashiCorp, Inc.
|
||
|
# SPDX-License-Identifier: MPL-2.0
|
||
|
|
||
|
output "private_ips" {
|
||
|
description = "Consul cluster target host private_ips"
|
||
|
value = [for host in var.target_hosts : host.private_ip]
|
||
|
}
|
||
|
|
||
|
output "public_ips" {
|
||
|
description = "Consul cluster target host public_ips"
|
||
|
value = [for host in var.target_hosts : host.public_ip]
|
||
|
}
|
||
|
|
||
|
output "target_hosts" {
|
||
|
description = "The Consul cluster instances that were created"
|
||
|
|
||
|
value = var.target_hosts
|
||
|
}
|