Skip to content

Commit

Permalink
Enable Authentication over ALB (#66)
Browse files Browse the repository at this point in the history
* NEW TargetGroup, Listener, HTTPS endpoint ARN as output of the nomad-datacenter submodule

* .Update added output of https-listener and targetgroup arn for cos ui alb's

* .Update added outputs to example
  • Loading branch information
ThomasObenaus authored and MatthiasScholz committed Jul 20, 2019
1 parent 08f3c5b commit 6d48223
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 13 deletions.
48 changes: 48 additions & 0 deletions examples/root-example/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,51 @@ output "consul_servers_cluster_tag_key" {
output "consul_servers_cluster_tag_value" {
value = "${module.nomad-infra.consul_servers_cluster_tag_value}"
}

output "nomad_ui_alb_dns_name" {
value = "${module.nomad-infra.nomad_ui_alb_dns_name}"
}

output "nomad_ui_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.nomad_ui_alb_https_targetgroup_arn}"
}

output "nomad_ui_alb_https_listener_arn" {
value = "${module.nomad-infra.nomad_ui_alb_https_listener_arn}"
}

output "consul_ui_alb_dns_name" {
value = "${module.nomad-infra.consul_ui_alb_dns_name}"
}

output "consul_ui_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.consul_ui_alb_https_targetgroup_arn}"
}

output "consul_ui_alb_https_listener_arn" {
value = "${module.nomad-infra.consul_ui_alb_https_listener_arn}"
}

output "fabio_ui_alb_dns_name" {
value = "${module.nomad-infra.fabio_ui_alb_dns_name}"
}

output "fabio_ui_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.fabio_ui_alb_https_targetgroup_arn}"
}

output "fabio_ui_alb_https_listener_arn" {
value = "${module.nomad-infra.fabio_ui_alb_https_listener_arn}"
}

output "dc-public-services_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.dc-public-services_alb_https_targetgroup_arn}"
}

output "dc-private-services_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.dc-private-services_alb_https_targetgroup_arn}"
}

output "dc-backoffice_alb_https_targetgroup_arn" {
value = "${module.nomad-infra.dc-backoffice_alb_https_targetgroup_arn}"
}
4 changes: 4 additions & 0 deletions modules/nomad-datacenter/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ output "cluster_prefix" {
output "sg_datacenter_id" {
value = "${aws_security_group.sg_datacenter.id}"
}

output "alb_https_targetgroup_arn" {
value = "${aws_alb_target_group.tgr_ingress_controller.*.arn}"
}
50 changes: 37 additions & 13 deletions modules/ui-access/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,35 +1,59 @@
output "nomad_ui_alb_dns_name" {
value = "${aws_alb.alb_nomad_ui.dns_name}"
output "nomad_ui_alb_zone_id" {
value = "${aws_alb.alb_nomad_ui.zone_id}"
}

output "consul_ui_alb_dns_name" {
value = "${aws_alb.alb_consul_ui.dns_name}"
output "nomad_ui_alb_sg_id" {
value = "${aws_security_group.sg_ui_alb.id}"
}

output "fabio_ui_alb_dns_name" {
value = "${aws_alb.alb_fabio_ui.dns_name}"
output "nomad_ui_alb_dns_name" {
value = "${aws_alb.alb_nomad_ui.dns_name}"
}

output "nomad_ui_alb_zone_id" {
value = "${aws_alb.alb_nomad_ui.zone_id}"
output "nomad_ui_alb_https_targetgroup_arn" {
value = "${aws_alb_target_group.tgr_nomad_ui.arn}"
}

output "nomad_ui_alb_https_listener_arn" {
value = "${aws_alb_listener.albl_https_nomad_ui.*.arn}"
}

output "consul_ui_alb_zone_id" {
value = "${aws_alb.alb_consul_ui.zone_id}"
}

output "consul_ui_alb_sg_id" {
value = "${aws_security_group.sg_ui_alb.id}"
}

output "consul_ui_alb_dns_name" {
value = "${aws_alb.alb_consul_ui.dns_name}"
}

output "consul_ui_alb_https_targetgroup_arn" {
value = "${aws_alb_target_group.tgr_consul_ui.arn}"
}

output "consul_ui_alb_https_listener_arn" {
value = "${aws_alb_listener.albl_https_consul_ui.*.arn}"
}

output "fabio_ui_alb_zone_id" {
value = "${aws_alb.alb_fabio_ui.zone_id}"
}

output "nomad_ui_alb_sg_id" {
output "fabio_ui_alb_sg_id" {
value = "${aws_security_group.sg_ui_alb.id}"
}

output "consul_ui_alb_sg_id" {
value = "${aws_security_group.sg_ui_alb.id}"
output "fabio_ui_alb_dns_name" {
value = "${aws_alb.alb_fabio_ui.dns_name}"
}

output "fabio_ui_alb_sg_id" {
value = "${aws_security_group.sg_ui_alb.id}"
output "fabio_ui_alb_https_targetgroup_arn" {
value = "${aws_alb_target_group.tgr_fabio_ui.arn}"
}

output "fabio_ui_alb_https_listener_arn" {
value = "${aws_alb_listener.albl_https_fabio_ui.*.arn}"
}
36 changes: 36 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,38 @@ output "nomad_ui_alb_dns_name" {
value = "${module.ui-access.nomad_ui_alb_dns_name}"
}

output "nomad_ui_alb_https_targetgroup_arn" {
value = "${module.ui-access.nomad_ui_alb_https_targetgroup_arn}"
}

output "nomad_ui_alb_https_listener_arn" {
value = "${module.ui-access.nomad_ui_alb_https_listener_arn}"
}

output "consul_ui_alb_dns_name" {
value = "${module.ui-access.consul_ui_alb_dns_name}"
}

output "consul_ui_alb_https_targetgroup_arn" {
value = "${module.ui-access.consul_ui_alb_https_targetgroup_arn}"
}

output "consul_ui_alb_https_listener_arn" {
value = "${module.ui-access.consul_ui_alb_https_listener_arn}"
}

output "fabio_ui_alb_dns_name" {
value = "${module.ui-access.fabio_ui_alb_dns_name}"
}

output "fabio_ui_alb_https_targetgroup_arn" {
value = "${module.ui-access.fabio_ui_alb_https_targetgroup_arn}"
}

output "fabio_ui_alb_https_listener_arn" {
value = "${module.ui-access.fabio_ui_alb_https_listener_arn}"
}

output "nomad_ui_alb_zone_id" {
value = "${module.ui-access.nomad_ui_alb_zone_id}"
}
Expand Down Expand Up @@ -58,14 +82,26 @@ output "dc-public-services_sg_id" {
value = "${module.dc-public-services.sg_datacenter_id}"
}

output "dc-public-services_alb_https_targetgroup_arn" {
value = "${module.dc-public-services.alb_https_targetgroup_arn}"
}

output "dc-private-services_sg_id" {
value = "${module.dc-private-services.sg_datacenter_id}"
}

output "dc-private-services_alb_https_targetgroup_arn" {
value = "${module.dc-private-services.alb_https_targetgroup_arn}"
}

output "dc-backoffice_sg_id" {
value = "${module.dc-backoffice.sg_datacenter_id}"
}

output "dc-backoffice_alb_https_targetgroup_arn" {
value = "${module.dc-backoffice.alb_https_targetgroup_arn}"
}

output "consul_servers_sg_id" {
value = "${module.consul.security_group_id_consul_servers}"
}
Expand Down

0 comments on commit 6d48223

Please sign in to comment.