-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
93 lines (73 loc) · 2.79 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
// Copyright 2022 Isovalent, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
output "aws_ebs_csi_driver_role_arn" {
value = length(var.aws_ebs_csi_driver_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_aws_ebs_csi_driver[0].iam_role_arn : ""
}
output "aws_ebs_csi_driver_policy_arn" {
value = length(var.aws_ebs_csi_driver_oidc_fully_qualified_subjects) > 0 ? aws_iam_policy.aws_ebs_csi_driver[0].arn : ""
}
output "aws_load_balancer_controller_role_arn" {
value = length(var.aws_load_balancer_controller_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_aws_load_balancer_controller[0].iam_role_arn : ""
}
output "cert_manager_role_arn" {
value = length(var.cert_manager_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_cert_manager[0].iam_role_arn : ""
}
output "cluster_autoscaler_role_arn" {
value = length(var.cluster_autoscaler_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_cluster_autoscaler[0].iam_role_arn : ""
}
output "external_dns_role_arn" {
value = length(var.external_dns_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_external_dns[0].iam_role_arn : ""
}
output "id" {
value = module.main.cluster_name
}
output "log_shipping_bucket_name" {
value = length(var.log_shipping_oidc_fully_qualified_subjects) > 0 ? aws_s3_bucket.log_shipping[0].id : ""
}
output "log_shipping_role_arn" {
value = length(var.log_shipping_oidc_fully_qualified_subjects) > 0 ? module.iam_assumable_role_log_shipping[0].iam_role_arn : ""
}
output "path_to_kubeconfig_file" {
value = local.path_to_kubeconfig_file
}
output "workers_security_group_id" {
value = module.main.node_security_group_id
}
output "workers_iam_role_arns" {
value = toset([
for k, v in module.main.self_managed_node_groups : v.iam_role_arn
])
}
output "ssh_key_name" {
value = aws_key_pair.ssh_access.key_name
}
output "ssh_private_key_pem" {
sensitive = true
value = tls_private_key.ssh_key.private_key_pem
}
output "oidc_provider_arn" {
value = module.main.oidc_provider_arn
}
output "cluster_version" {
value = module.main.cluster_version
}
output "cluster_arn" {
value = module.main.cluster_arn
}
output "cluster_endpoint" {
value = module.main.cluster_endpoint
}
output "oidc_provider_url" {
value = module.main.oidc_provider
}