File tree Expand file tree Collapse file tree 3 files changed +0
-34
lines changed
.github/actions/build-ami Expand file tree Collapse file tree 3 files changed +0
-34
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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-
4126variable "region" {
4227 type = string
4328}
@@ -110,15 +95,12 @@ packer {
11095# source block
11196source "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
Original file line number Diff line number Diff line change 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-
161variable "region" {
172 type = string
183}
You can’t perform that action at this time.
0 commit comments