forked from jjno91/terraform-aws-ecs-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
87 lines (70 loc) · 2.47 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
variable "env" {
description = "(optional) Unique name of your Terraform environment to be used for naming and tagging resources"
default = "default"
}
variable "tags" {
description = "(optional) Additional tags to be applied to all resources"
default = {}
}
variable "subnet_tags" {
description = "(optional) Tags used to identify your target subnets with selected VPC"
default = {
Type = "Private"
}
}
variable "vpc_id" {
description = "(required) ID of the VPC that your ECS cluster will be deployed to"
default = ""
}
variable "instance_type" {
description = "(optional) EC2 instance type for the ASG of your cluster"
default = "m5.large"
}
variable "ami_name_filter" {
description = "(optional) Used to lookup the AMI that will be used in the cluster launch template"
default = "Windows_Server-2016-English-Full-ECS_Optimized*"
}
variable "sized_block_device" {
description = "(optional) Name of the block device that the launch template will size"
default = "/dev/sda1"
}
variable "ec2_disk_size" {
description = "(optional) Size of the root volume for your EC2 container instances"
default = "50"
}
variable "min_size" {
description = "(optional) Minimum node count for ASG"
default = "2"
}
variable "max_size" {
description = "(optional) Maximum node count for ASG"
default = "10"
}
variable "scaling_metric" {
description = "(optional) ECS cluster metric used to calculate scaling operations"
default = "MemoryReservation"
}
variable "scaling_metric_period" {
description = "(optional) https://www.terraform.io/docs/providers/aws/r/cloudwatch_metric_alarm.html#period"
default = "60"
}
variable "scaling_evaluation_periods" {
description = "(optional) https://www.terraform.io/docs/providers/aws/r/cloudwatch_metric_alarm.html#evaluation_periods"
default = "2"
}
variable "scaling_high_bound" {
description = "(optional) When scaling_metric is above this bound your cluster will scale up"
default = "90"
}
variable "scaling_low_bound" {
description = "(optional) When scaling_metric is below this bound your cluster will scale down"
default = "75"
}
variable "scaling_adjustment" {
description = "(optional) https://www.terraform.io/docs/providers/aws/r/autoscaling_policy.html#scaling_adjustment"
default = "1"
}
variable "scaling_cooldown" {
description = "(optional) https://www.terraform.io/docs/providers/aws/r/autoscaling_policy.html#cooldown"
default = "180"
}