-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbluedata_infra_outputs.tf
130 lines (108 loc) · 2.79 KB
/
bluedata_infra_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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
output "project_dir" {
value = abspath(path.module)
}
output "user" {
value = var.user
}
output "aws_profile" {
value = var.profile
}
output "aws_region" {
value = var.region
}
output "subnet_cidr_block" {
value = var.subnet_cidr_block
}
output "vpc_cidr_block" {
value = var.vpc_cidr_block
}
output "deployment_uuid" {
value = random_uuid.deployment_uuid.result
}
output "ssh_pub_key_path" {
value = var.ssh_pub_key_path
}
output "ssh_prv_key_path" {
value = var.ssh_prv_key_path
}
output "ca_cert" {
value = var.ca_cert
}
output "ca_key" {
value = var.ca_key
}
output "client_cidr_block" {
value = var.client_cidr_block
}
//// MAPR Cluster 1
output "mapr_cluster_1_hosts_instance_id" {
value = [aws_instance.mapr_cluster_1_hosts.*.id]
}
output "mapr_cluster_1_hosts_public_ip" {
value = [aws_instance.mapr_cluster_1_hosts.*.public_ip]
}
output "mapr_cluster_1_hosts_public_dns" {
value = [aws_instance.mapr_cluster_1_hosts.*.public_dns]
}
output "mapr_cluster_1_hosts_private_ip" {
value = [aws_instance.mapr_cluster_1_hosts.*.private_ip]
}
output "mapr_cluster_1_hosts_private_ip_flat" {
value = join("\n", aws_instance.mapr_cluster_1_hosts.*.private_ip)
}
output "mapr_cluster_1_hosts_public_ip_flat" {
value = join("\n", aws_instance.mapr_cluster_1_hosts.*.public_ip)
}
output "mapr_cluster_1_hosts_private_dns" {
value = [aws_instance.mapr_cluster_1_hosts.*.private_dns]
}
output "mapr_cluster_1_count" {
value = [var.mapr_cluster_1_count]
}
output "mapr_cluster_1_name" {
value = [var.mapr_cluster_1_name]
}
/// MAPR Cluster 2
output "mapr_cluster_2_hosts_instance_id" {
value = [aws_instance.mapr_cluster_2_hosts.*.id]
}
output "mapr_cluster_2_hosts_public_ip" {
value = [aws_instance.mapr_cluster_2_hosts.*.public_ip]
}
output "mapr_cluster_2_hosts_public_dns" {
value = [aws_instance.mapr_cluster_2_hosts.*.public_dns]
}
output "mapr_cluster_2_hosts_private_ip" {
value = [aws_instance.mapr_cluster_2_hosts.*.private_ip]
}
output "mapr_cluster_2_hosts_private_ip_flat" {
value = join("\n", aws_instance.mapr_cluster_2_hosts.*.private_ip)
}
output "mapr_cluster_2_hosts_public_ip_flat" {
value = join("\n", aws_instance.mapr_cluster_2_hosts.*.public_ip)
}
output "mapr_cluster_2_hosts_private_dns" {
value = [aws_instance.mapr_cluster_2_hosts.*.private_dns]
}
output "mapr_cluster_2_count" {
value = [var.mapr_cluster_2_count]
}
output "mapr_cluster_2_name" {
value = [var.mapr_cluster_2_name]
}
// AD Server Output
output "ad_server_instance_id" {
value = module.ad_server.instance_id
}
output "ad_server_private_ip" {
value = module.ad_server.private_ip
}
output "ad_server_public_ip" {
value = module.ad_server.public_ip
}
output "ad_server_ssh_command" {
value = module.ad_server.ssh_command
}
output "ad_server_enabled" {
value = var.ad_server_enabled
}