Commit 113d2f49 authored by Cameron McFarland's avatar Cameron McFarland

Adding the auto scaling groups.

parent ae35e86a
......@@ -307,3 +307,62 @@ resource "aws_kinesis_stream" "snowplow_s3loader_bad" {
environment = "SnowPlow"
}
}
// EC2 Launch Configs
//resource "aws_launch_configuration" "snowplow_collector_launch_config" {
//}
// EC2 Auto Scaling Groups
resource "aws_autoscaling_group" "snowplow_collector_autoscaling_group" {
launch_configuration = "SnowPlowCollector-v3"
max_size = "3"
min_size = "3"
tag {
key = "environment"
value = "SnowPlow"
propagate_at_launch = true
}
tag {
key = "Name"
value = "SnowPlowAutoCollector"
propagate_at_launch = true
}
}
resource "aws_autoscaling_group" "snowplow_enricher_autoscaling_group" {
launch_configuration = "SnowPlowEnricher-v2"
max_size = "3"
min_size = "3"
tag {
key = "environment"
value = "SnowPlow"
propagate_at_launch = true
}
tag {
key = "Name"
value = "SnowPlowAutoEnricher"
propagate_at_launch = true
}
}
resource "aws_autoscaling_group" "snowplow_s3loader_autoscaling_group" {
launch_configuration = "SnowPlowS3Loader-v1"
max_size = "1"
min_size = "1"
tag {
key = "environment"
value = "SnowPlow"
propagate_at_launch = true
}
tag {
key = "Name"
value = "SnowPlowAutoS3Loader"
propagate_at_launch = true
}
}
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