-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptional-cluster.tf
71 lines (60 loc) · 1.93 KB
/
optional-cluster.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
variable "cluster_name" {
description = "Name of the cluster"
default = null
type = string
}
variable "cluster_ec2_backed" {
description = "Whether or not to provision an autoscaled EC2 fleet to back the cluster"
default = false
type = bool
}
variable "cluster_instance_type" {
description = "Instance type to use for EC2 backed cluster"
default = "m7a.xlarge"
type = string
}
variable "cluster_max_size" {
description = "Maximum size for the autoscaling group to scale out to for the cluster"
default = 25
type = number
}
variable "cluster_min_size" {
description = "Minimum size for the autoscaling group to scale out to for the cluster"
default = 3
type = number
}
variable "cluster_role_policy_json" {
description = "(optional) IAM policy to attach to role used for the instance profile of instances in this cluster"
default = null
type = string
}
variable "cluster_max_instance_lifetime" {
description = "Maximum lifetime for an instance in the autoscaling group"
default = 604800 # 1 week
type = number
}
variable "cluster_protect_from_scale_in" {
description = "Allow ECS to protect instances running tasks from being terminated while tasks are running on them. Must be false when destroying cluster"
default = true
type = bool
}
variable "cluster_maximum_scaling_step_size" {
description = "Capacity provider maximum scaling step size"
default = 10
type = number
}
variable "cluster_minimum_scaling_step_size" {
description = "Capacity provider maximum scaling step size"
default = 1
type = number
}
variable "cluster_target_capacity" {
description = "Capacity provider target capacity"
default = 75
type = number
}
variable "cluster_launch_template_version" {
description = "Version of the launch template to use"
default = "$Latest"
type = string
}