Skip to content

Commit

Permalink
UPDATE output based on merging hashicorp/terraform#12453
Browse files Browse the repository at this point in the history
  • Loading branch information
phoolish committed Jul 2, 2019
1 parent b022b84 commit 11b74d4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions aws/ec2/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
output "instance_ids" {
value = [aws_instance.mod[*].id]
value = aws_instance.mod[*].id
}

output "public_ips" {
# Cannot use lists in a conditional statement
# https://github.com/hashicorp/terraform/issues/12453
value = [split(
",",
var.enable_eip ? join(",", aws_eip.mod[*].public_ip) : join(",", aws_instance.mod[*].public_ip),
)]
value = var.enable_eip ? aws_eip.mod[*].public_ip : aws_instance.mod[*].public_ip
}

output "security_group_on_instances" {
Expand Down

0 comments on commit 11b74d4

Please sign in to comment.