10 lines
348 B
Terraform
Raw Permalink Normal View History

# output "compute_ami" {
# description = "Prints the image AMI installed on our EC2s."
# value = data.aws_ami.compute_ami
# }
2023-06-19 12:40:53 -04:00
# Extract EC2 ARN from each instance, into a new map.
2023-06-19 12:40:53 -04:00
output "public_ec2" {
description = "Prints the ARN for the publicly accessible EC2(s)"
value = [for idx, val in module.standalone_ec2 : val.arn]
}