Skip to content

Instantly share code, notes, and snippets.

@rivernews
Created February 28, 2019 01:22
Show Gist options
  • Save rivernews/7b94ab87bb18a546ff1405264ab6653c to your computer and use it in GitHub Desktop.
Save rivernews/7b94ab87bb18a546ff1405264ab6653c to your computer and use it in GitHub Desktop.
...
resource "aws_alb_target_group" "http" {
name = "${var.project_name}-alb-tg-http"
port = 80
protocol = "HTTP"
vpc_id = "${var.vpc_id}"
health_check {
path = "/"
matcher = "200-299"
port = 80 # or "traffic-port" (default)
protocol = "HTTP" # default
interval = 20
timeout = 10
healthy_threshold = 2
unhealthy_threshold = 3
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment