-
Notifications
You must be signed in to change notification settings - Fork 9
/
outputs.tf
96 lines (76 loc) · 2.6 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
### CLUSTER
output "oidc_provider_arn" {
value = try(module.eks-cluster[0].oidc_provider_arn, null)
}
output "eks_oidc_root_ca_thumbprint" {
value = local.eks_oidc_root_ca_thumbprint
description = "Grab eks_oidc_root_ca_thumbprint from oidc_provider_arn."
}
output "cluster_id" {
value = try(module.eks-cluster[0].cluster_id, null)
}
output "cluster_iam_role_name" {
value = try(module.eks-cluster[0].cluster_iam_role_name, null)
}
output "cluster_security_group_id" {
value = try(module.eks-cluster[0].cluster_security_group_id, null)
}
output "cluster_primary_security_group_id" {
value = try(module.eks-cluster[0].cluster_primary_security_group_id, null)
}
output "map_user_data" {
value = try(module.eks-cluster[0].map_users_data, null)
}
# output "cluster_name" {
# value = module.eks-cluster[0].cluster_name
# }
output "cluster_host" {
value = try(module.eks-cluster[0].host, null)
description = "EKS cluster host name used for authentication/access in helm/kubectl/kubernetes providers"
}
output "cluster_certificate" {
value = try(module.eks-cluster[0].certificate, null)
description = "EKS cluster certificate used for authentication/access in helm/kubectl/kubernetes providers"
}
output "cluster_token" {
value = try(module.eks-cluster[0].token, null)
description = "EKS cluster token used for authentication/access in helm/kubectl/kubernetes providers"
}
### VPC
output "vpc_cidr_block" {
value = try(module.vpc[0].cidr_block, null)
description = "The cidr block of the vpc"
}
output "vpc_id" {
value = try(module.vpc[0].id, null)
description = "The newly created vpc id"
}
output "vpc_private_subnets" {
value = try(module.vpc[0].private_subnets, null)
description = "The newly created vpc private subnets IDs list"
}
output "vpc_public_subnets" {
value = try(module.vpc[0].public_subnets, null)
description = "The newly created vpc public subnets IDs list"
}
output "vpc_default_security_group_id" {
value = try(module.vpc[0].default_security_group_id, null)
description = "The ID of default security group created for vpc"
}
output "vpc_nat_public_ips" {
value = try(module.vpc[0].nat_public_ips, null)
description = "The list of elastic public IPs for vpc"
}
output "role_arns" {
value = try(module.sso-rbac[0].role_arns, "")
}
output "role_arns_without_path" {
value = try(module.sso-rbac[0].role_arns_without_path, "")
}
output "eks_auth_configmap" {
value = try(module.sso-rbac[0].config_yaml, "")
sensitive = true
}
output "eks_module" {
value = try(module.eks-cluster[0].eks_module, null)
}