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-
211variable "ansible_arguments" {
222 type = string
233 default = " --skip-tags install-postgrest,install-pgbouncer,install-supabase-internal"
244}
255
26- variable "aws_access_key" {
27- type = string
28- default = " "
29- }
30-
31- variable "aws_secret_key" {
32- type = string
33- default = " "
34- }
35-
366variable "environment" {
377 type = string
388 default = " prod"
@@ -42,36 +12,6 @@ variable "git_sha" {
4212 type = string
4313}
4414
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-
7515locals {
7616 creator = " packer"
7717}
@@ -91,11 +31,6 @@ variable "packer-execution-id" {
9131 default = " unknown"
9232}
9333
94- variable "force-deregister" {
95- type = bool
96- default = false
97- }
98-
9934packer {
10035 required_plugins {
10136 amazon = {
@@ -132,16 +67,12 @@ source "qemu" "cloudimg" {
13267 disk_image = true
13368 disk_size = " 15G"
13469 format = " qcow2"
135- # TODO (darora): disable backing image for qcow2
13670 headless = true
13771 http_directory = " http"
13872 iso_checksum = " file:https://cloud-images.ubuntu.com/focal/current/SHA256SUMS"
13973 iso_url = " https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
14074 memory = 20000
14175 qemu_binary = " qemu-system-aarch64"
142- qemu_img_args {
143- create = [" -F" , " qcow2" ]
144- }
14576 qemuargs = [
14677 [" -machine" , " virt" ],
14778 [" -cpu" , " host" ],
@@ -158,8 +89,8 @@ source "qemu" "cloudimg" {
15889 ssh_timeout = " 1h"
15990 ssh_username = " ubuntu"
16091 ssh_wait_timeout = " 1h"
161- use_backing_file = true
162- accelerator = " kvm"
92+ use_backing_file = false
93+ accelerator = " kvm"
16394}
16495
16596build {
0 commit comments