Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
yuhunglin committed Jun 2, 2018
1 parent 4a1fa49 commit 8490b2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-openvpn-server/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ output "vpn_server_sg_id" {
output "role_id_openvpn" {
value = "${aws_iam_role.role.unique_id}"
}

output "vpn_server_eip_id" {
value = "${element(concat(aws_eip.openvpn_eip.*.id, list("")), 0)}"
}

0 comments on commit 8490b2b

Please sign in to comment.