-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.pkr.hcl
161 lines (134 loc) · 3.92 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
packer {
required_plugins {
amazon = {
version = ">= 1.2.8"
source = "github.com/hashicorp/amazon"
}
}
}
locals {
packages = "amazon-efs-utils amazon-ssm-agent amazon-ec2-net-utils acpid"
}
variable "additional_packages" {
type = string
description = "Additional packages to be installed with yum/dnf"
default = ""
}
variable "ami_name_prefix" {
type = string
description = "Outputted AMI name prefix."
default = "unofficial-amzn2023-ami-ecs"
}
variable "ami_version" {
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.84.0"
}
variable "ecs_init_rev" {
type = string
description = "ecs-init package version rev"
default = "1"
}
variable "docker_version" {
type = string
description = "Docker version to build AL2023 AMI with."
default = "25.0.3"
}
variable "containerd_version" {
type = string
description = "Containerd version to build AL2023 AMI with."
default = "1.7.11"
}
variable "runc_version" {
type = string
description = "Runc version to build AL2023 AMI with."
default = "1.1.11"
}
variable "exec_ssm_version" {
type = string
description = "SSM binary version to build ECS exec support with."
default = "3.2.2303.0"
}
variable "source_ami" {
type = string
description = "Amazon Linux 2023 source AMI to build from."
}
variable "source_ami_arm" {
type = string
description = "Amazon Linux 2023 ARM source AMI to build from."
}
variable "distribution_release" {
type = string
description = "Amazon Linux 2023 distribution release."
}
variable "kernel_version" {
type = string
description = "Amazon Linux 2023 kernel version."
}
variable "kernel_version_arm" {
type = string
description = "Amazon Linux 2023 ARM kernel version."
}
variable "air_gapped" {
type = string
description = "If this build is for an air-gapped region, set to 'true'"
default = ""
}
variable "ecs_init_url" {
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 = ""
}