forked from IndicoDataSolutions/tf_cod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
89 lines (70 loc) · 2.2 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
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
output "api_models_s3_bucket_name" {
description = "Name of the api-models s3 bucket"
value = module.s3-storage.api_models_s3_bucket_name
}
output "data_s3_bucket_name" {
description = "Name of the data s3 bucket"
value = module.s3-storage.data_s3_bucket_name
}
/*
output "cluster_manager_ip" {
description = "IP of the cluster manager instance"
value = module.cluster-manager.cluster_manager_ip
}
*/
output "s3_role_id" {
description = "ID of the S3 role"
value = module.cluster.s3_role_id
}
output "efs_filesystem_id" {
description = "ID of the EFS filesystem"
value = var.include_efs == true ? module.efs-storage[0].efs_filesystem_id : ""
}
output "fsx-rwx" {
description = "Read write filesystem"
value = var.include_fsx == true ? module.fsx-storage[0].fsx-rwx : null
}
output "fsx-rox" {
description = "Read only filesystem"
value = var.include_rox ? module.fsx-storage[0].fsx-rox : ""
}
output "indico_allow_access" {
value = aws_security_group.indico_allow_access.id
description = "The ID of the indico indico_allow_access security group used for configuring HAproxy."
}
output "key_pem" {
value = tls_private_key.pk.private_key_pem
description = "Generated private key for key pair"
sensitive = true
}
output "fsx_storage_fsx_rwx_dns_name" {
value = var.include_fsx == true ? module.fsx-storage[0].fsx-rwx.dns_name : ""
}
output "fsx_storage_fsx_rwx_mount_name" {
value = var.include_fsx == true ? module.fsx-storage[0].fsx-rwx.mount_name : ""
}
output "fsx_storage_fsx_rwx_volume_handle" {
value = var.include_fsx == true ? module.fsx-storage[0].fsx-rwx.id : ""
}
output "fsx_storage_fsx_rwx_subnet_id" {
value = var.include_fsx == true ? module.fsx-storage[0].fsx-rwx.subnet_ids[0] : ""
}
output "cluster_name" {
value = local.cluster_name
}
output "dns_name" {
value = local.dns_name
}
# output "kubeconfig" {
# value = module.cluster.kubectl_config
# }
output "kube_host" {
value = module.cluster.kubernetes_host
}
output "kube_ca_certificate" {
value = base64encode(module.cluster.kubernetes_cluster_ca_certificate)
}
output "kube_token" {
sensitive = true
value = module.cluster.kubernetes_token
}