This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use splat syntax to access attributes for resources with count set.
[#153534525]
- Loading branch information
Genevieve LEsperance
committed
Dec 9, 2017
1 parent
b0a6af9
commit 7ff1bf6
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
output "bucket" { | ||
value = "${aws_s3_bucket.ops_manager_bucket.bucket}" | ||
value = "${element(concat(aws_s3_bucket.ops_manager_bucket.*.bucket, list("")), 0)}" | ||
} | ||
|
||
output "public_ip" { | ||
value = "${aws_eip.ops_manager.public_ip}" | ||
value = "${element(concat(aws_eip.ops_manager.*.public_ip, list("")), 0)}" | ||
} | ||
|
||
output "dns" { | ||
value = "${aws_route53_record.ops_manager.name}" | ||
value = "${element(concat(aws_route53_record.ops_manager.*.name, list("")), 0)}" | ||
} | ||
|
||
output "optional_dns" { | ||
value = "${element(concat(aws_route53_record.optional_ops_manager.*.name, list("")), 0)}" | ||
} | ||
|
||
output "security_group_id" { | ||
value = "${aws_security_group.ops_manager_security_group.id}" | ||
value = "${element(concat(aws_security_group.ops_manager_security_group.*.id, list("")), 0)}" | ||
} | ||
|
||
output "ssh_private_key" { | ||
value = "${tls_private_key.ops_manager.private_key_pem}" | ||
value = "${element(concat(tls_private_key.ops_manager.*.private_key_pem, list("")), 0)}" | ||
} | ||
|
||
output "ssh_public_key_name" { | ||
value = "${aws_key_pair.ops_manager.key_name}" | ||
value = "${element(concat(aws_key_pair.ops_manager.*.key_name, list("")), 0)}" | ||
} | ||
|
||
output "ops_manager_private_ip" { | ||
value = "${aws_instance.ops_manager.private_ip}" | ||
value = "${element(concat(aws_instance.ops_manager.*.private_ip, list("")), 0)}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters