open-vault/enos/modules/target_ec2_spot_fleet/outputs.tf

15 lines
372 B
Terraform
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
output "cluster_name" {
value = local.cluster_name
}
output "hosts" {
description = "The ec2 fleet target hosts"
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
} }
}