forked from sassoftware/viya4-iac-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
116 lines (89 loc) · 2.71 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
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
output "cluster_endpoint" {
description = "Endpoint for EKS control plane."
value = module.eks.cluster_endpoint
}
output "kube_config" {
value = module.kubeconfig.kube_config
sensitive = true
}
output "worker_iam_role_arn" {
value = module.eks.worker_iam_role_arn
}
output "rwx_filestore_id" {
value = var.storage_type == "ha" ? element(coalescelist(aws_efs_file_system.efs-fs.*.id, [""]), 0) : null
}
output "rwx_filestore_endpoint" {
value = var.storage_type == "ha" ? element(coalescelist(aws_efs_file_system.efs-fs.*.dns_name, [""]), 0) : module.nfs.private_dns
}
output "rwx_filestore_path" {
value = var.storage_type == "ha" ? "/" : "/export"
}
output "efs_arn" {
value = var.storage_type == "ha" ? element(coalescelist(aws_efs_file_system.efs-fs.*.arn, [""]), 0) : null
}
output "jump_private_ip" {
value = var.create_jump_vm ? module.jump.private_ip_address : ""
}
output "jump_public_ip" {
value = var.create_jump_vm ? module.jump.public_ip_address : ""
}
output jump_admin_username {
value = var.create_jump_vm ? module.jump.admin_username : ""
}
output "jump_private_dns" {
value = var.create_jump_vm ? module.jump.private_dns : ""
}
output "jump_public_dns" {
value = var.create_jump_vm ? module.jump.public_dns : ""
}
output jump_rwx_filestore_path {
value = var.create_jump_vm ? var.jump_rwx_filestore_path : null
}
output "nfs_private_ip" {
value = var.storage_type == "standard" ? module.nfs.private_ip_address : null
}
output "nfs_public_ip" {
value = var.storage_type == "standard" ? module.nfs.public_ip_address : null
}
output "nfs_admin_username" {
value = var.storage_type == "standard" ? module.nfs.admin_username : null
}
output "nsf_private_dns" {
value = var.storage_type == "standard" ? module.nfs.private_dns : null
}
output "nfs_public_dns" {
value = var.storage_type == "standard" ? module.nfs.public_dns : null
}
#postgres
output "postgres_servers" {
value = length(module.postgresql) != 0 ? local.postgres_outputs : null
sensitive = true
}
output "nat_ip" {
value = module.vpc.nat_public_ips[0]
}
output "prefix" {
value = var.prefix
}
output "cluster_name" {
value = local.cluster_name
}
output "provider" {
value = "aws"
}
output "location" {
value = var.location
}
## Reference for Amazon ECR private registries: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html
output "cr_endpoint" {
value = "https://${data.aws_caller_identity.terraform.account_id}.dkr.ecr.${var.location}.amazonaws.com"
}
output "cluster_node_pool_mode" {
value = var.cluster_node_pool_mode
}
output "autoscaler_account" {
value = var.autoscaling_enabled ? module.autoscaling.0.autoscaler_account : null
}
output "infra_mode" {
value = var.infra_mode
}