-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
70 lines (62 loc) · 2.3 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
variable "name" {
type = string
description = "The name of the ECS cluster. Associated resources' names will also be prefixed by this value"
}
variable "additional_tags" {
type = map(string)
description = "Additional tags for the ECS cluster"
default = {}
}
variable "additional_tags_all" {
type = map(string)
description = "Additional tags for all resources in deployed with this module"
default = {}
}
variable "default_capacity_provider_strategy" {
type = map(object({
base = optional(number, 0)
weight = number
}))
description = "Specify the default capacity provider strategy that is used when creating services in the cluster"
default = {}
}
variable "default_service_connect_namespace" {
type = string
description = "Specify the name of an AWS Cloud Map namespace for service to service communication"
default = null
}
variable "ec2_capacity_providers" {
type = map(object({
desired_instances = number
image_id = string
instance_type = string
security_group_ids = list(string)
subnet_ids = list(string)
additional_tags = optional(map(string), {})
instance_iam_role = optional(string, null)
max_desired_instances = optional(number, null)
min_desired_instances = optional(number, null)
root_ebs_volume_size = optional(number, 30)
spot_instance_allocation_strategy = optional(string, null)
ssh_keypair_name = optional(string, null)
enable_managed_scaling = optional(object({
enable_managed_scaling_draining = optional(bool, true)
enable_scale_in_protection = optional(bool, false)
target_capacity_percent = optional(number, 100)
}), {})
}))
description = "Configures multiple EC2 capacity providers"
default = {}
}
variable "enable_fargate_capacity_provider" {
type = bool
description = "Enables both Fargate and Fargate Spot capacity providers for the cluster"
default = true
}
variable "monitoring" {
type = object({
enable_container_insights = optional(bool, false)
})
description = "Configures ECS monitoring options"
default = null
}