1
- variable "ami" {
2
- type = string
3
- default = " ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-*"
4
- }
5
-
6
- variable "profile" {
7
- type = string
8
- default = " ${ env (" AWS_PROFILE" )} "
9
- }
10
-
11
- variable "ami_name" {
12
- type = string
13
- default = " supabase-postgres"
14
- }
15
-
16
- variable "ami_regions" {
17
- type = list (string )
18
- default = [" ap-southeast-2" ]
19
- }
20
-
21
1
variable "ansible_arguments" {
22
2
type = string
23
3
default = " --skip-tags install-postgrest,install-pgbouncer,install-supabase-internal"
24
4
}
25
5
26
- variable "aws_access_key" {
27
- type = string
28
- default = " "
29
- }
30
-
31
- variable "aws_secret_key" {
32
- type = string
33
- default = " "
34
- }
35
-
36
6
variable "environment" {
37
7
type = string
38
8
default = " prod"
@@ -42,36 +12,6 @@ variable "git_sha" {
42
12
type = string
43
13
}
44
14
45
- # variable "region" {
46
- # type = string
47
- # }
48
-
49
- variable "build-vol" {
50
- type = string
51
- default = " xvdc"
52
- }
53
-
54
- # ccache docker image details
55
- variable "docker_user" {
56
- type = string
57
- default = " "
58
- }
59
-
60
- variable "docker_passwd" {
61
- type = string
62
- default = " "
63
- }
64
-
65
- variable "docker_image" {
66
- type = string
67
- default = " "
68
- }
69
-
70
- variable "docker_image_tag" {
71
- type = string
72
- default = " latest"
73
- }
74
-
75
15
locals {
76
16
creator = " packer"
77
17
}
@@ -91,11 +31,6 @@ variable "packer-execution-id" {
91
31
default = " unknown"
92
32
}
93
33
94
- variable "force-deregister" {
95
- type = bool
96
- default = false
97
- }
98
-
99
34
packer {
100
35
required_plugins {
101
36
amazon = {
@@ -132,16 +67,12 @@ source "qemu" "cloudimg" {
132
67
disk_image = true
133
68
disk_size = " 15G"
134
69
format = " qcow2"
135
- # TODO (darora): disable backing image for qcow2
136
70
headless = true
137
71
http_directory = " http"
138
72
iso_checksum = " file:https://cloud-images.ubuntu.com/focal/current/SHA256SUMS"
139
73
iso_url = " https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
140
74
memory = 20000
141
75
qemu_binary = " qemu-system-aarch64"
142
- qemu_img_args {
143
- create = [" -F" , " qcow2" ]
144
- }
145
76
qemuargs = [
146
77
[" -machine" , " virt" ],
147
78
[" -cpu" , " host" ],
@@ -158,8 +89,8 @@ source "qemu" "cloudimg" {
158
89
ssh_timeout = " 1h"
159
90
ssh_username = " ubuntu"
160
91
ssh_wait_timeout = " 1h"
161
- use_backing_file = true
162
- accelerator = " kvm"
92
+ use_backing_file = false
93
+ accelerator = " kvm"
163
94
}
164
95
165
96
build {
0 commit comments