Commit 54c5af8e authored by Cameron McFarland's avatar Cameron McFarland

Added some health check info to the target group for collectors and changed...

Added some health check info to the target group for collectors and changed the instance type to something a little cheaper.
parent 2946efc4
...@@ -455,7 +455,7 @@ data "aws_ami" "amazonlinux2" { ...@@ -455,7 +455,7 @@ data "aws_ami" "amazonlinux2" {
resource "aws_launch_configuration" "snowplow_collector_launch_config" { resource "aws_launch_configuration" "snowplow_collector_launch_config" {
image_id = "${data.aws_ami.amazonlinux2.id}" image_id = "${data.aws_ami.amazonlinux2.id}"
instance_type = "m5.large" instance_type = "t3.micro"
associate_public_ip_address = "true" associate_public_ip_address = "true"
enable_monitoring = "false" enable_monitoring = "false"
iam_instance_profile = "${aws_iam_role.snowplow_collector_role.id}" iam_instance_profile = "${aws_iam_role.snowplow_collector_role.id}"
...@@ -498,6 +498,15 @@ resource "aws_lb_target_group" "snowplow_collector_lb_target_group" { ...@@ -498,6 +498,15 @@ resource "aws_lb_target_group" "snowplow_collector_lb_target_group" {
protocol = "TCP" protocol = "TCP"
vpc_id = "${aws_vpc.snowplow_vpc.id}" vpc_id = "${aws_vpc.snowplow_vpc.id}"
health_check {
interval = "30"
path = "/health"
protocol = "HTTP"
timeout = "6"
healthy_threshold = "3"
unhealthy_threshold = "3"
}
tags = { tags = {
environment = "SnowPlow" environment = "SnowPlow"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment