Clarify AWS module output names and changes

This commit is contained in:
Dalton Hubble
2018-06-23 15:15:57 -07:00
parent 0c4d59db87
commit 855aec5af3
9 changed files with 50 additions and 38 deletions

View File

@ -44,7 +44,7 @@ resource "aws_lb_listener" "ingress-http" {
default_action {
type = "forward"
target_group_arn = "${module.workers.target_group_http_arn}"
target_group_arn = "${module.workers.target_group_http}"
}
}
@ -56,7 +56,7 @@ resource "aws_lb_listener" "ingress-https" {
default_action {
type = "forward"
target_group_arn = "${module.workers.target_group_https_arn}"
target_group_arn = "${module.workers.target_group_https}"
}
}

View File

@ -1,18 +1,10 @@
# Outputs for Kubernetes Ingress
output "ingress_dns_name" {
value = "${aws_lb.nlb.dns_name}"
description = "DNS name of the network load balancer for distributing traffic to Ingress controllers"
}
output "target_group_http_arn" {
description = "ARN of a target group of workers for HTTP traffic"
value = "${module.workers.target_group_http_arn}"
}
output "target_group_https_arn" {
description = "ARN of a target group of workers for HTTPS traffic"
value = "${module.workers.target_group_https_arn}"
}
# Outputs for worker pools
output "vpc_id" {
@ -33,3 +25,15 @@ output "worker_security_groups" {
output "kubeconfig" {
value = "${module.bootkube.kubeconfig}"
}
# Outputs for custom load balancing
output "worker_target_group_http" {
description = "ARN of a target group of workers for HTTP traffic"
value = "${module.workers.target_group_http}"
}
output "worker_target_group_https" {
description = "ARN of a target group of workers for HTTPS traffic"
value = "${module.workers.target_group_https}"
}

View File

@ -1,9 +1,9 @@
output "target_group_http_arn" {
output "target_group_http" {
description = "ARN of a target group of workers for HTTP traffic"
value = "${aws_lb_target_group.workers-http.arn}"
}
output "target_group_https_arn" {
output "target_group_https" {
description = "ARN of a target group of workers for HTTPS traffic"
value = "${aws_lb_target_group.workers-https.arn}"
}