-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
38 lines (32 loc) · 1.08 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
variable "name" {
description = "Name of the ECS cluster"
type = string
validation {
condition = var.name != ""
error_message = "The name MUST be not empty."
}
validation {
condition = var.name == replace(var.name, "/[^a-zA-Z0-9-_]+/", "")
error_message = "The name MUST be alphanumeric and can contain dashes and underscores."
}
}
variable "capacity_providers" {
description = "List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT."
type = list(string)
default = []
}
variable "default_capacity_provider_strategy" {
description = "The capacity provider strategy to use by default for the cluster. Can be one or more."
type = list(map(any))
default = []
}
variable "container_insights" {
description = "Controls if ECS Cluster has container insights enabled"
type = bool
default = false
}
variable "tags" {
description = "A map of tags to add to ECS Cluster resource"
type = map(string)
default = {}
}