mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-16 18:51:33 +02:00
Add ability to load balance TCP applications on AWS
* Add ability to load balance TCP applications (e.g. NodePort) * Output the network load balancer ARN as `nlb_id` * Accept a `worker_target_groups` (ARN) list to which worker instances should be added * AWS NLBs and target groups don't support UDP
This commit is contained in:
@ -64,6 +64,12 @@ variable "spot_price" {
|
||||
description = "Spot price in USD for autoscaling group spot instances. Leave as default empty string for autoscaling group to use on-demand instances. Note, switching in-place from spot to on-demand is not possible: https://github.com/terraform-providers/terraform-provider-aws/issues/4320"
|
||||
}
|
||||
|
||||
variable "target_groups" {
|
||||
type = "list"
|
||||
description = "Additional target group ARNs to which instances should be added"
|
||||
default = []
|
||||
}
|
||||
|
||||
variable "clc_snippets" {
|
||||
type = "list"
|
||||
description = "Container Linux Config snippets"
|
||||
|
@ -19,6 +19,7 @@ resource "aws_autoscaling_group" "workers" {
|
||||
target_group_arns = [
|
||||
"${aws_lb_target_group.workers-http.id}",
|
||||
"${aws_lb_target_group.workers-https.id}",
|
||||
"${var.target_groups}",
|
||||
]
|
||||
|
||||
lifecycle {
|
||||
|
Reference in New Issue
Block a user