-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
50 lines (49 loc) · 1.42 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
variable "environment" {
type = string
description = "Environment. Example: staging, production."
}
variable "cluster_name" {
type = string
description = "Name of ECS cluster."
}
variable "capacity_providers" {
type = list(object({
name = string
target_capacity = number
managed_scaling_status = string
managed_termination_protection = string
}))
description = "Capacity provider configuration."
}
variable "asg" {
type = list(object({
name = string
vpc_zone_identifier = list(string)
health_check_type = string
health_check_grace_period = number
max_size = number
min_size = number
protect_from_scale_in = bool
additional_tags = list(object({
key = string
value = string
propagate_at_launch = bool
}))
}))
description = "Autoscaling group configuration."
}
variable "launch_configs" {
type = list(object({
name = string
image_id = string
instance_type = string
user_data_base64 = string
iam_instance_profile_name = string
root_block_device = object({
volume_type = string
volume_size = number
})
security_group_ids = list(string)
}))
description = "Launch configuration for EC2 instances."
}