2018-12-16 06:48:08 +01:00
|
|
|
output "kubeconfig-admin" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.kubeconfig-admin
|
|
|
|
sensitive = true
|
2018-12-16 06:48:08 +01:00
|
|
|
}
|
|
|
|
|
2018-06-24 00:15:57 +02:00
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
|
2017-09-28 09:46:17 +02:00
|
|
|
output "ingress_dns_name" {
|
2019-05-28 05:42:48 +02:00
|
|
|
value = aws_lb.nlb.dns_name
|
2017-11-08 06:56:50 +01:00
|
|
|
description = "DNS name of the network load balancer for distributing traffic to Ingress controllers"
|
2017-09-28 09:46:17 +02:00
|
|
|
}
|
2018-02-27 07:16:34 +01:00
|
|
|
|
2019-01-14 01:37:12 +01:00
|
|
|
output "ingress_zone_id" {
|
2019-05-28 05:42:48 +02:00
|
|
|
value = aws_lb.nlb.zone_id
|
2019-01-14 01:37:12 +01:00
|
|
|
description = "Route53 zone id of the network load balancer DNS name that can be used in Route53 alias records"
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:16:34 +01:00
|
|
|
# Outputs for worker pools
|
|
|
|
|
|
|
|
output "vpc_id" {
|
2019-05-28 05:42:48 +02:00
|
|
|
value = aws_vpc.network.id
|
2018-02-27 07:16:34 +01:00
|
|
|
description = "ID of the VPC for creating worker instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "subnet_ids" {
|
2019-05-28 05:42:48 +02:00
|
|
|
value = aws_subnet.public.*.id
|
2018-02-27 07:16:34 +01:00
|
|
|
description = "List of subnet IDs for creating worker instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_security_groups" {
|
2019-05-28 05:42:48 +02:00
|
|
|
value = [aws_security_group.worker.id]
|
2018-02-27 07:16:34 +01:00
|
|
|
description = "List of worker security group IDs"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "kubeconfig" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
|
|
sensitive = true
|
2018-02-27 07:16:34 +01:00
|
|
|
}
|
2018-06-24 00:15:57 +02:00
|
|
|
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
|
2019-04-01 08:22:47 +02:00
|
|
|
output "nlb_id" {
|
|
|
|
description = "ARN of the Network Load Balancer"
|
2019-05-28 05:42:48 +02:00
|
|
|
value = aws_lb.nlb.id
|
2019-04-01 08:22:47 +02:00
|
|
|
}
|
|
|
|
|
2018-06-24 00:15:57 +02:00
|
|
|
output "worker_target_group_http" {
|
|
|
|
description = "ARN of a target group of workers for HTTP traffic"
|
2019-05-28 05:42:48 +02:00
|
|
|
value = module.workers.target_group_http
|
2018-06-24 00:15:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_target_group_https" {
|
|
|
|
description = "ARN of a target group of workers for HTTPS traffic"
|
2019-05-28 05:42:48 +02:00
|
|
|
value = module.workers.target_group_https
|
2018-06-24 00:15:57 +02:00
|
|
|
}
|
2019-05-28 05:42:48 +02:00
|
|
|
|
2020-10-17 23:41:26 +02:00
|
|
|
# Outputs for debug
|
|
|
|
|
|
|
|
output "assets_dist" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.assets_dist
|
|
|
|
sensitive = true
|
2020-10-17 23:41:26 +02:00
|
|
|
}
|
|
|
|
|