-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.tf
23 lines (22 loc) · 1.09 KB
/
ecs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module "ecs_cluster" {
source = "./ecs_module"
vpc_id = "${module.geofront-eu-west-1.id}"
subnet_list_id = "${module.geofront-eu-west-1.subnet_list}"
ecs_drain_sns_arn = "${module.lambda_drain.sns_arn}"
autoscaling_notification_role_arn = "${module.iam_security.autoscaling_notification_role_arn}"
instance_profile_ecs_ec2_id = "${module.iam_security.ecs_ec2_profile_id}"
name = "geofront-ecs"
region = "eu-west-1"
instance_type = "t2.micro"
key_name = "geofront"
ssh_access_subnet_list = ["0.0.0.0/0"]
metric_name = "MemoryReservation"
adjustment_type = "PercentChangeInCapacity"
period = 60
evaluation_periods = 1
scale_in_threshold = 20
scale_out_threshold = 80
scaling_adjustment = 5
asg_min = 1
asg_max = 12
}