-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
110 lines (93 loc) · 2.33 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
# required variables
#
variable "cluster_name" {
type = string
description = "Name of the ECS cluster"
}
# optional variables
#
variable "ami" {
type = string
description = "Name of the AMI image to use"
default = ""
}
variable "cloud_init_parts" {
type = list(map(string))
description = "Allows to provide additional cloud-init parts"
default = []
}
variable "cpu_unlimited" {
type = bool
description = "Whether or not enable t2/t3 cpu unlimited (if true, might incur additional charges)"
default = false
}
variable "disk_encrypted" {
type = bool
description = "Whether or not encrypt the EBS volume"
default = true
}
variable "disk_size" {
type = number
description = "EBS volume size"
default = 30
}
variable "disk_type" {
type = string
description = "EBS volume type"
default = "gp2"
}
variable "ec2_key_name" {
type = string
description = "EC2 key name to attach to newly created EC2 instances"
default = ""
}
variable "instance_type" {
type = string
description = "EC2 instance type"
default = "t3.micro"
}
variable "instance_refresh" {
type = bool
description = "Whether or not refresh the ASG when LT is updated"
default = false
}
variable "instances_desired" {
type = number
description = "Number of EC2 instances desired"
default = 0
}
variable "instances_autoscale_max" {
type = number
description = "The maximum number of EC2 instances when using autoscaling"
default = 10
}
variable "metadata_options" {
type = map(any)
description = "Map of metadata options"
default = {}
}
variable "security_groups" {
type = list(any)
description = "list of security group names"
default = []
}
variable "subnet_ids" {
description = "list of subnet ids. By default takes all subnets from the VPC"
type = list(any)
default = []
}
variable "spot" {
type = bool
description = "Whether or not use Spot instances. Warning: most likely not suitable for production!"
default = false
}
variable "tags" {
type = map(any)
description = "instances tags"
default = {}
}
variable "vpc_name" {
type = string
description = "VPC name. If not set, will default to \"default\""
default = ""
}