2023-10-23 15:11:46 -04:00
|
|
|
# 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
|
|
|
|
2023-10-23 15:11:46 -04:00
|
|
|
# Extract EC2 ARN from each instance, into a new map.
|
2023-06-19 12:40:53 -04:00
|
|
|
output "public_ec2" {
|
2023-10-23 15:11:46 -04:00
|
|
|
description = "Prints the ARN for the publicly accessible EC2(s)"
|
|
|
|
value = [for idx, val in module.standalone_ec2 : val.arn]
|
|
|
|
}
|