forked from martinhristov90/3xVault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
59 lines (48 loc) · 2.54 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
output "current-env-id" {
value = random_pet.env.id
description = "Outputs the random ID used for particular deployment of the environment, useful for enabling S3 snapshots"
}
#output "vault-cluster-us-public-ips" {
# value = [for node in module.vault-cluster-us.vault-instance-public-ips : format("Name: %s - Public IP: %s", node.tags.Name, node.public_ip)]
# description = "Prints public IPs for the nodes in the US cluster"
#}
#
#output "vault-cluster-eu-public-ips" {
# value = [for node in module.vault-cluster-eu.vault-instance-public-ips : format("Name: %s - Public IP: %s", node.tags.Name, node.public_ip)]
# description = "Prints public IPs for the nodes in the EU cluster"
#}
#
#output "vault-cluster-ap-public-ips" {
# value = [for node in module.vault-cluster-ap.vault-instance-public-ips : format("Name: %s - Public IP: %s", node.tags.Name, node.public_ip)]
# description = "Prints public IPs for the nodes in the AP cluster"
#}
output "boundary-us-public-ip" {
value = module.boundary_cluster_hq_provider.boundary-instance-public-ip.public_ip
description = "Prints public IP for Boundary worker in the US (HQ) cluster"
}
output "boundary-eu-public-ip" {
value = module.boundary_cluster_dr_provider.boundary-instance-public-ip.public_ip
description = "Prints public IP for Boundary worker in the EU (DR) cluster"
}
output "boundary-ap-public-ip" {
value = module.boundary_cluster_pr_provider.boundary-instance-public-ip.public_ip
description = "Prints public IP for Boundary worker in the AP (PR) cluster"
}
output "login_us" {
value = "boundary authenticate password -scope-id=${module.hcp_boundary_cluster.org_id_aws} -auth-method-id=${module.hcp_boundary_cluster.auth_method_id} -login-name=administrator-us"
}
output "login_eu" {
value = "boundary authenticate password -scope-id=${module.hcp_boundary_cluster.org_id_aws} -auth-method-id=${module.hcp_boundary_cluster.auth_method_id} -login-name=administrator-eu"
}
output "login_ap" {
value = "boundary authenticate password -scope-id=${module.hcp_boundary_cluster.org_id_aws} -auth-method-id=${module.hcp_boundary_cluster.auth_method_id} -login-name=administrator-ap"
}
output "vault_ssh_target_us" {
value = "boundary connect ssh -target-scope-name=3xVaultProject -target-name=targetUSregion"
}
output "vault_ssh_target_eu" {
value = "boundary connect ssh -target-scope-name=3xVaultProject -target-name=targetEUregion"
}
output "vault_ssh_target_ap" {
value = "boundary connect ssh -target-scope-name=3xVaultProject -target-name=targetAPregion"
}