2023-09-18 21:10:37 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
2023-04-13 19:44:43 +00:00
|
|
|
output "cluster_name" {
|
|
|
|
value = local.cluster_name
|
|
|
|
}
|
|
|
|
|
|
|
|
output "hosts" {
|
2023-06-22 22:14:22 +00:00
|
|
|
description = "The ec2 fleet target hosts"
|
2023-04-13 19:44:43 +00:00
|
|
|
value = { for idx in range(var.instance_count) : idx => {
|
|
|
|
public_ip = data.aws_instance.targets[idx].public_ip
|
|
|
|
private_ip = data.aws_instance.targets[idx].private_ip
|
|
|
|
} }
|
|
|
|
}
|