[routing] fix health check rules

This commit is contained in:
Paul Schoenfelder 2018-06-04 19:13:17 -04:00
parent f6ec1307dc
commit 0ce4e61a48
2 changed files with 16 additions and 2 deletions

View File

@ -29,9 +29,9 @@ resource "aws_elb" "explorer" {
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
timeout = 15
interval = 30
target = "HTTP:4000/"
target = "HTTP:4000/en/blocks"
}
listener {

View File

@ -152,6 +152,13 @@ resource "aws_security_group" "elb" {
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 4000
to_port = 4000
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
# HTTPS from anywhere
ingress {
@ -187,6 +194,13 @@ resource "aws_security_group" "app" {
protocol = "tcp"
cidr_blocks = ["${var.vpc_cidr}"]
}
ingress {
from_port = 4000
to_port = 4000
protocol = "tcp"
cidr_blocks = ["${var.vpc_cidr}"]
}
# HTTPS from the VPC
ingress {