-
Notifications
You must be signed in to change notification settings - Fork 0
/
_variables.tf
144 lines (117 loc) · 3.07 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
variable "name" {
description = "Name of this EC2 Instance"
}
variable "instance_type" {
default = "t2.micro"
description = "EC2 instance type"
}
variable "instance_count" {
default = 1
description = "Number of EC2 intances"
}
variable "lb_type" {
default = ""
description = "Either ALB, NLB or EIP to enable"
}
variable "lb_scheme" {
default = "external"
description = "Wheter to use an external ALB/NLB or internal (not applicable for EIP)"
}
variable "tcp_ports" {
type = list
default = []
description = "List TCP ports to listen (only when lb_type is NLB or EIP)"
}
variable "udp_ports" {
type = list
default = []
description = "List of UDP ports to listen (only when lb_type is NLB or EIP)"
}
variable "sg_cidr_blocks" {
type = list
default = []
description = "Which cidr blocks allowed to connect to the service"
}
variable "certificate_arn" {
default = ""
description = "Certificate ARN to be used on the ALB"
}
variable "userdata" {
default = ""
description = "Extra commands to pass to userdata"
}
variable "fs_type" {
default = "EFS"
description = "Filesystem persistency to use: EFS or EBS"
}
variable "efs_mount_dir" {
default = "/mnt/efs"
description = "Custom EFS mount point - e.g /home"
}
variable "ebs_size" {
default = 40
description = "Size of EBS volumes in GB"
}
variable "ebs_encrypted" {
default = true
description = "Encrypts EBS volume"
}
variable "ebs_kms_key_id" {
default = ""
description = "Encrypts EBS volume with custom KMS key (requires ebs_encrypted=true)"
}
variable "ebs_type" {
default = "gp2"
description = "EBS volume type"
}
variable "ebs_mount_dir" {
default = "/mnt/ebs"
description = "Custom EBS mount point - e.g /home"
}
variable "instances_subnet_ids" {
type = list
description = "List of private subnet IDs for EC2 instances (same number as instance_count)"
}
variable "lb_subnet_ids" {
type = list
default = []
description = "List of subnet IDs for the ALB/NLB"
}
variable "efs_subnet_ids" {
type = list
default = []
description = "List of secure subnet IDs for EFS"
}
variable "vpc_id" {
description = "VPC ID to deploy the EC2/default cluster"
}
variable "security_group_ids" {
type = list
default = []
description = "Extra security groups for instances"
}
variable "hostname_create" {
default = false
description = "Wheter to create the hostnames on Route 53"
}
variable "hosted_zone" {
default = ""
description = "Route 53 hosted zone"
}
variable "hostnames" {
default = []
description = "Hostnames to be created on Route 53"
}
variable "ami_id" {
default = ""
description = "AMI to use (leave blank to use latest Amazon Linux 2)"
}
variable "cwlog_files" {
default = []
description = "List of log files to stream to cloudwatch logs (leave empty to disable the agent) - only for Amazon Linux 2 AMIs"
}
variable "tags" {
default = {}
description = "Additional resource tags"
type = map(string)
}