forked from spotinst/terraform-spotinst-ocean-eks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
149 lines (118 loc) · 4.63 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// region terraform-aws-modules/eks
output "cluster_id" {
description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
value = module.eks.cluster_id
}
output "cluster_arn" {
description = "The Amazon Resource Name (ARN) of the cluster"
value = module.eks.cluster_arn
}
output "cluster_certificate_authority_data" {
description = "Nested attribute containing certificate-authority-data for your cluster. This is the base64 encoded certificate data required to communicate with your cluster"
value = module.eks.cluster_certificate_authority_data
}
output "cluster_endpoint" {
description = "The endpoint for your EKS Kubernetes API"
value = module.eks.cluster_endpoint
}
output "cluster_version" {
description = "The Kubernetes server version for the EKS cluster"
value = module.eks.cluster_version
}
output "cluster_security_group_id" {
description = "Security group ID attached to the EKS cluster. On 1.14 or later, this is the 'Additional security groups' in the EKS console"
value = module.eks.cluster_security_group_id
}
output "config_map_aws_auth" {
description = "A kubernetes configuration to authenticate to this EKS cluster"
value = module.eks.config_map_aws_auth
}
output "cluster_iam_role_name" {
description = "IAM role name of the EKS cluster"
value = module.eks.cluster_iam_role_name
}
output "cluster_iam_role_arn" {
description = "IAM role ARN of the EKS cluster"
value = module.eks.cluster_iam_role_arn
}
output "cluster_oidc_issuer_url" {
description = "The URL on the EKS cluster OIDC Issuer"
value = module.eks.cluster_oidc_issuer_url
}
output "cluster_primary_security_group_id" {
description = "The cluster primary security group ID created by the EKS cluster on 1.14 or later. Referred to as 'Cluster security group' in the EKS console"
value = module.eks.cluster_primary_security_group_id
}
output "cloudwatch_log_group_name" {
description = "Name of cloudwatch log group created"
value = module.eks.cloudwatch_log_group_name
}
output "cloudwatch_log_group_arn" {
description = "ARN of cloudwatch log group created"
value = module.eks.cloudwatch_log_group_arn
}
output "kubeconfig" {
description = "kubectl config file contents for this EKS cluster"
value = module.eks.kubeconfig
}
output "kubeconfig_filename" {
description = "The filename of the generated kubectl config"
value = module.eks.kubeconfig_filename
}
output "oidc_provider_arn" {
description = "The ARN of the OIDC Provider if `enable_irsa = true`"
value = module.eks.oidc_provider_arn
}
output "workers_user_data" {
description = "User data of worker groups"
value = module.eks.workers_user_data
}
output "workers_default_ami_id" {
description = "ID of the default worker group AMI"
value = module.eks.workers_default_ami_id
}
output "worker_security_group_id" {
description = "Security group ID attached to the EKS workers"
value = module.eks.worker_security_group_id
}
output "worker_iam_instance_profile_arns" {
description = "Default IAM instance profile ARN for EKS worker groups"
value = module.eks.worker_iam_instance_profile_arns
}
output "worker_iam_instance_profile_names" {
description = "Default IAM instance profile name for EKS worker groups"
value = module.eks.worker_iam_instance_profile_names
}
output "worker_iam_role_name" {
description = "Default IAM role name for EKS worker groups"
value = module.eks.worker_iam_role_name
}
output "worker_iam_role_arn" {
description = "Default IAM role ARN for EKS worker groups"
value = module.eks.worker_iam_role_arn
}
output "security_group_rule_cluster_https_worker_ingress" {
description = "Security group rule responsible for allowing pods to communicate with the EKS cluster API"
value = module.eks.security_group_rule_cluster_https_worker_ingress
}
output "cluster_token" {
sensitive = true
description = "The token to use to authenticate with the cluster"
value = element(concat(data.aws_eks_cluster_auth.cluster[*].token, [""]), 0)
}
output "cluster_ca_certificate" {
sensitive = true
description = "Cluster CA certificate (base64 encoded)"
value = element(concat(data.aws_eks_cluster.cluster[*].certificate_authority.0.data, [""]), 0)
}
// endregion
// region spotinst/ocean-eks
output "ocean_cluster_id" {
description = "The ID of the Ocean cluster"
value = local.ocean_cluster_id
}
output "ocean_controller_id" {
description = "The ID of the Ocean controller"
value = local.ocean_controller_id
}
// endregion