-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.tf
More file actions
135 lines (113 loc) · 3.99 KB
/
output.tf
File metadata and controls
135 lines (113 loc) · 3.99 KB
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
output "master_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the role"
value = aws_iam_role.eks-master-role.*.arn
}
output "master_role_create_date" {
description = "The creation date of the IAM role"
value = aws_iam_role.eks-master-role.*.create_date
}
output "master_role_id" {
description = "The name of the role"
value = aws_iam_role.eks-master-role.*.id
}
output "master_role_name" {
description = "The name of the role"
value = aws_iam_role.eks-master-role.*.name
}
output "master_role_unique_id" {
description = "The stable and unique string identifying the role"
value = aws_iam_role.eks-master-role.*.unique_id
}
##### Node Role outputs
output "nodes_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the role"
value = aws_iam_role.eks-node-role.*.arn
}
output "nodes_role_create_date" {
description = "The creation date of the IAM role"
value = aws_iam_role.eks-node-role.*.create_date
}
output "nodes_role_id" {
description = "The name of the role"
value = aws_iam_role.eks-node-role.*.id
}
output "nodes_role_name" {
description = "The name of the role"
value = aws_iam_role.eks-node-role.*.name
}
output "nodes_role_unique_id" {
description = "The stable and unique string identifying the role"
value = aws_iam_role.eks-node-role.*.unique_id
}
###### Master SG output
output "master_sg_id" {
description = "The ID of the security group"
value = aws_security_group.cluster.*.id
}
output "master_sg_arn" {
description = "The ARN of the security group"
value = aws_security_group.cluster.*.arn
}
output "master_sg_ingress_rules" {
description = "The ingress rules"
value = aws_security_group.cluster.*.ingress
}
output "master_sg_egress_rules" {
description = "The egress rules"
value = aws_security_group.cluster.*.egress
}
###### Worker nodes SG output
output "worker_nodes_sg_id" {
description = "The ID of the security group"
value = aws_security_group.workers.*.id
}
output "worker_nodes_sg_arn" {
description = "The ARN of the security group"
value = aws_security_group.workers.*.arn
}
output "worker_nodes_sg_ingress_rules" {
description = "The ingress rules"
value = aws_security_group.workers.*.ingress
}
output "worker_nodes_sg_egress_rules" {
description = "The egress rules"
value = aws_security_group.cluster.*.egress
}
##### Cloudwatch Log Group for EKS
output "eks_clg_arn" {
description = "The Amazon Resource Name (ARN) specifying the log group"
value = aws_cloudwatch_log_group.this.*.arn
}
##### EKS Cluster output Details
output "eks_id" {
description = "The name of the cluster"
value = concat(aws_eks_cluster.this.*.id, [""])[0]
}
output "eks_arn" {
description = "The Amazon Resource Name (ARN) of the cluster."
value = concat(aws_eks_cluster.this.*.arn, [""])[0]
}
output "eks_certificate_authority" {
description = "The base64 encoded certificate data required to communicate with your cluster."
value = element(concat(aws_eks_cluster.this[*].certificate_authority[0].data, list("")), 0)
}
output "eks_endpoint" {
description = "The endpoint for your Kubernetes API server."
value = concat(aws_eks_cluster.this.*.endpoint, [""])[0]
}
output "eks_platform_version" {
description = "The platform version for the cluster"
value = concat(aws_eks_cluster.this.*.platform_version, [""])[0]
}
output "eks_status" {
description = "The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED"
value = concat(aws_eks_cluster.this.*.status, [""])[0]
}
output "eks_version" {
description = "The Kubernetes server version for the cluster."
value = concat(aws_eks_cluster.this.*.version, [""])[0]
}
output "eks_vpc_config" {
description = "The cluster security group that was created by Amazon EKS for the cluster."
value = element(concat(aws_eks_cluster.this[*].vpc_config[0].cluster_security_group_id, list("")), 0)
}