Skip to content

Commit 0d5e4f7

Browse files
committed
chore: remove unused packer variables
1 parent 5c49974 commit 0d5e4f7

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

.github/actions/build-ami/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ runs:
6464
-var "git-head-version=${{ inputs.git_sha }}" \
6565
-var "packer-execution-id=${{ env.EXECUTION_ID }}" \
6666
-var "ansible_arguments=-e postgresql_major=${{ inputs.postgres_version }}" \
67-
-var "region=${{ inputs.region }}" \
6867
-var 'ami_regions=${{ inputs.ami_regions }}' \
6968
-var-file="development-arm.vars.pkr.hcl" \
7069
amazon-arm64-nix.pkr.hcl

amazon-arm64-nix.pkr.hcl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@ variable "ansible_arguments" {
2323
default = "--skip-tags install-postgrest,install-pgbouncer,install-supabase-internal"
2424
}
2525

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-
variable "environment" {
37-
type = string
38-
default = "prod"
39-
}
40-
4126
variable "region" {
4227
type = string
4328
}
@@ -110,15 +95,12 @@ packer {
11095
# source block
11196
source "amazon-ebssurrogate" "source" {
11297
profile = "${var.profile}"
113-
#access_key = "${var.aws_access_key}"
114-
#ami_name = "${var.ami_name}-arm64-${formatdate("YYYY-MM-DD-hhmm", timestamp())}"
11598
ami_name = "${var.ami_name}-${var.postgres-version}-${var.input-hash}-stage-1"
11699
ami_virtualization_type = "hvm"
117100
ami_architecture = "arm64"
118101
ami_regions = "${var.ami_regions}"
119102
instance_type = "c6g.4xlarge"
120103
region = "${var.region}"
121-
#secret_key = "${var.aws_secret_key}"
122104
force_deregister = var.force-deregister
123105

124106
# Increase timeout for instance stop operations to handle large instances

stage2-nix-psql.pkr.hcl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
variable "profile" {
2-
type = string
3-
default = "${env("AWS_PROFILE")}"
4-
}
5-
6-
variable "ami_regions" {
7-
type = list(string)
8-
default = ["ap-southeast-1"]
9-
}
10-
11-
variable "environment" {
12-
type = string
13-
default = "prod"
14-
}
15-
161
variable "region" {
172
type = string
183
}

0 commit comments

Comments
 (0)