forked from sassoftware/viya4-iac-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
executable file
·133 lines (104 loc) · 3.02 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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 "cluster_iam_role_arn" {
value = module.eks.cluster_iam_role_arn
}
output "rwx_filestore_id" {
value = var.storage_type == "ha" ? aws_efs_file_system.efs-fs.0.id : null
}
output "rwx_filestore_endpoint" {
value = ( var.storage_type == "none"
? null
: var.storage_type == "ha" ? aws_efs_file_system.efs-fs.0.dns_name : module.nfs.0.private_dns
)
}
output "rwx_filestore_path" {
value = ( var.storage_type == "none"
? null
: var.storage_type == "ha" ? "/" : "/export"
)
}
output "efs_arn" {
value = var.storage_type == "ha" ? aws_efs_file_system.efs-fs.0.arn : null
}
output "jump_private_ip" {
value = var.create_jump_vm ? module.jump.0.private_ip_address : null
}
output "jump_public_ip" {
value = var.create_jump_vm ? module.jump.0.public_ip_address : null
}
output jump_admin_username {
value = var.create_jump_vm ? module.jump.0.admin_username : null
}
output "jump_private_dns" {
value = var.create_jump_vm ? module.jump.0.private_dns : null
}
output "jump_public_dns" {
value = var.create_jump_vm ? module.jump.0.public_dns : null
}
output jump_rwx_filestore_path {
value = ( var.storage_type != "none"
? var.create_jump_vm ? var.jump_rwx_filestore_path : null
: null
)
}
output "nfs_private_ip" {
value = var.storage_type == "standard" ? module.nfs.0.private_ip_address : null
}
output "nfs_public_ip" {
value = var.storage_type == "standard" ? module.nfs.0.public_ip_address : null
}
output "nfs_admin_username" {
value = var.storage_type == "standard" ? module.nfs.0.admin_username : null
}
output "nfs_private_dns" {
value = var.storage_type == "standard" ? module.nfs.0.private_dns : null
}
output "nfs_public_dns" {
value = var.storage_type == "standard" ? module.nfs.0.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 "cluster_api_mode" {
value = var.cluster_api_mode
}
output "ebs_csi_account" {
value = module.ebs.ebs_csi_account
}
output "k8s_version" {
value = data.aws_eks_cluster.cluster.version
}