Skip to content

Commit 8490b2b

Browse files
committed
v1.0.3
`docker-openvpn-server/cluster`: Optional output for EIP - worked through https://www.terraform.io/upgrade-guides/0-11.html#referencing-attributes-from-resources-with-count-0 to get eip alloc id output
1 parent 4a1fa49 commit 8490b2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-openvpn-server/cluster/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ output "vpn_server_sg_id" {
66
output "role_id_openvpn" {
77
value = "${aws_iam_role.role.unique_id}"
88
}
9+
10+
output "vpn_server_eip_id" {
11+
value = "${element(concat(aws_eip.openvpn_eip.*.id, list("")), 0)}"
12+
}

0 commit comments

Comments
 (0)