-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
128 lines (109 loc) · 3.37 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
variable "name" {
description = "Name of the product/project/application"
type = string
default = ""
}
variable "ecs_cluster_name" {
description = "Name of the ecs cluster"
type = string
default = null
}
variable "service_connect_defaults" {
description = "Configures a Service Connect Namespace"
type = map(string)
default = {}
}
################################################################################
# Cloudwatch
################################################################################
variable "create_log_group" {
description = "Whether to create log group"
type = bool
default = true
}
variable "log_group_name" {
description = "Provide name for log group"
type = string
default = ""
}
variable "log_retention" {
description = "Specify log retention in days"
type = number
default = 30
}
################################################################################
# ECS Capacity Provider
################################################################################
variable "link_ecs_to_asg_capacity_provider" {
description = "Specify whether link ECS to autoscaling group capacity provider"
type = bool
default = false
}
variable "create_capacity_provider" {
description = "Specify whether to create autoscaling based capacity provider"
type = bool
default = true
}
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 "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 "key_admin_arn" {
description = "Key administrator principal for the KMS key"
type = string
default = ""
}
variable "asg_arn" {
description = "Autoscaling Group ARN"
type = string
default = ""
}
variable "termination_protection" {
description = "Enables or disables container-aware termination of instances in the auto scaling group when scale-in happens."
type = bool
default = true
}
variable "managed_scaling" {
description = "Specifies whether to enable managed scaling"
type = bool
default = true
}
variable "scaling_max_step_size" {
description = "Sets managed scaling max step size"
type = number
default = 10
}
variable "scaling_min_step_size" {
description = "Sets managed scaling min step size"
type = number
default = 1
}
variable "scaling_target_capacity" {
description = "Sets managed scaling target capacity"
type = number
default = 80
}
variable "ecs_container_insights" {
description = "Whether to enable container insights for ECS cluster"
type = bool
default = true
}
variable "ecs_encrypt_logs" {
description = "Enable encryption for cloudwatch logs"
type = bool
default = true
}
################################################################################
# Tagging
################################################################################
variable "tags" {
description = "AWS tags to be applied to resources"
type = map(string)
default = {}
}