-
Notifications
You must be signed in to change notification settings - Fork 41
/
outputs.tf
27 lines (25 loc) · 1.06 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
locals {
config = {
name = aws_eks_cluster.control_plane.name
endpoint = aws_eks_cluster.control_plane.endpoint
arn = aws_eks_cluster.control_plane.arn
ca_data = aws_eks_cluster.control_plane.certificate_authority[0].data
vpc_id = var.vpc_config.vpc_id
private_subnet_ids = var.vpc_config.private_subnet_ids
node_security_group = aws_eks_cluster.control_plane.vpc_config.0.cluster_security_group_id
tags = var.tags
iam_role_name_prefix = var.iam_role_name_prefix
iam_policy_name_prefix = var.iam_policy_name_prefix
fargate_execution_role_arn = aws_iam_role.fargate.arn
}
}
output "config" {
value = local.config
}
output "oidc_config" {
value = {
url = aws_iam_openid_connect_provider.cluster_oidc.url
arn = aws_iam_openid_connect_provider.cluster_oidc.arn
condition = "${replace(aws_iam_openid_connect_provider.cluster_oidc.url, "https://", "")}:sub"
}
}