-
Notifications
You must be signed in to change notification settings - Fork 47
/
variables.pkr.hcl
258 lines (214 loc) · 6.59 KB
/
variables.pkr.hcl
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
packer {
required_plugins {
amazon = {
version = ">= 1.2.8"
source = "github.com/hashicorp/amazon"
}
}
}
locals {
packages_al1 = "amazon-efs-utils ec2-net-utils acpid irqbalance numactl rng-tools docker-storage-setup"
packages_al2 = "amazon-efs-utils ec2-net-utils acpid amazon-ssm-agent yum-plugin-upgrade-helper iproute-tc"
packages_al2023 = "amazon-efs-utils amazon-ssm-agent amazon-ec2-net-utils acpid iproute-tc"
}
variable "ami_name_prefix_al1" {
type = string
description = "Outputted AMI name prefix."
default = "unofficial-amzn-ami-2018.03."
}
variable "ami_name_prefix_al2" {
type = string
description = "Outputted AMI name prefix."
default = "unofficial-amzn2-ami-ecs"
}
variable "ami_name_prefix_al2023" {
type = string
description = "Outputted AMI name prefix."
default = "unofficial-amzn2023-ami-ecs"
}
variable "ami_version_al1" {
type = string
description = "Outputted AMI version."
}
variable "ami_version_al2" {
type = string
description = "Outputted AMI version."
}
variable "ami_version_al2023" {
type = string
description = "Outputted AMI version."
}
variable "region" {
type = string
description = "Region to build the AMI in."
}
variable "block_device_size_gb" {
type = number
description = "Size of the root block device."
default = 30
}
variable "ecs_agent_version" {
type = string
description = "ECS agent version to build AMI with."
default = "1.89.1"
}
variable "ecs_init_rev" {
type = string
description = "ecs-init package version rev"
default = "1"
}
variable "docker_version" {
type = string
description = "Docker version to build AMI with."
default = "25.0.6"
}
variable "containerd_version" {
type = string
description = "Containerd version to build AMI with."
default = "1.7.20"
}
variable "runc_version" {
type = string
description = "Runc version to build AMI with."
default = "1.1.14"
}
variable "docker_version_al2023" {
type = string
description = "Docker version to build AL2023 AMI with."
default = "25.0.6"
}
variable "containerd_version_al2023" {
type = string
description = "Containerd version to build AL2023 AMI with."
default = "1.7.20"
}
variable "runc_version_al2023" {
type = string
description = "Runc version to build AL2023 AMI with."
default = "1.1.14"
}
variable "exec_ssm_version" {
type = string
description = "SSM binary version to build ECS exec support with."
default = "3.3.859.0"
}
variable "source_ami_al2" {
type = string
description = "Amazon Linux 2 source AMI to build from."
}
variable "source_ami_al2arm" {
type = string
description = "Amazon Linux 2 ARM source AMI to build from."
}
variable "source_ami_al2kernel5dot10" {
type = string
description = "Amazon Linux 2 Kernel 5.10 source AMI to build from."
}
variable "source_ami_al2kernel5dot10arm" {
type = string
description = "Amazon Linux 2 Kernel 5.10 ARM source AMI to build from."
}
variable "source_ami_al2023" {
type = string
description = "Amazon Linux 2023 source AMI to build from."
}
variable "source_ami_al2023arm" {
type = string
description = "Amazon Linux 2023 ARM source AMI to build from."
}
variable "distribution_release_al2023" {
type = string
description = "Amazon Linux 2023 distribution release."
}
variable "kernel_version_al2023" {
type = string
description = "Amazon Linux 2023 kernel version."
}
variable "kernel_version_al2023arm" {
type = string
description = "Amazon Linux 2023 ARM kernel version."
}
variable "source_ami_al1" {
type = string
description = "Amazon Linux 1 source AMI to build from."
}
variable "docker_version_al1" {
type = string
description = "Docker version to build AL1 AMI with."
default = "20.10.13"
}
variable "ecs_version_al1" {
type = string
description = "ECS version to build AL1 AMI with."
default = "1.51.0"
}
variable "air_gapped" {
type = string
description = "If this build is for an air-gapped region, set to 'true'"
default = ""
}
variable "ecs_init_url_al2" {
type = string
description = "Specify a particular ECS init URL for AL2 to install. If empty it will use the standard path."
default = ""
}
variable "ecs_init_url_al2023" {
type = string
description = "Specify a particular ECS init URL for AL2023 to install. If empty it will use the standard path."
default = ""
}
variable "ecs_init_local_override" {
type = string
description = "Specify a local init rpm under /additional-packages to be used for building AL2 and AL2023 AMIs. If empty it will use ecs_init_url if specified, otherwise the standard path"
default = ""
}
variable "general_purpose_instance_types" {
type = list(string)
description = "List of available in-region instance types for general-purpose platform"
default = ["c5.large"]
}
variable "gpu_instance_types" {
type = list(string)
description = "List of available in-region instance types for GPU platform"
default = ["c5.4xlarge"]
}
variable "arm_instance_types" {
type = list(string)
description = "List of available in-region instance types for ARM platform"
default = ["m6g.xlarge"]
}
variable "inf_instance_types" {
type = list(string)
description = "List of available in-region instance types for INF platform"
default = ["inf1.xlarge"]
}
variable "neu_instance_types" {
type = list(string)
description = "List of available in-region instance types for NEU platform"
default = ["inf1.xlarge"]
}
variable "managed_daemon_base_url" {
type = string
description = "Base URL (minus file name) to download managed daemons from."
default = ""
}
variable "ebs_csi_driver_version" {
type = string
description = "EBS CSI driver version to build AMI with."
default = ""
}
variable "ami_ou_arns" {
type = list(string)
description = "A list of Amazon Resource Names (ARN) of AWS Organizations organizational units (OU) that have access to launch the resulting AMI(s)."
default = []
}
variable "ami_org_arns" {
type = list(string)
description = "A list of Amazon Resource Names (ARN) of AWS Organizations that have access to launch the resulting AMI(s)."
default = []
}
variable "ami_users" {
type = list(string)
description = "A list of account IDs that have access to launch the resulting AMI(s)."
default = []
}