8000 add aws arm support · octavetn/postgres@0535671 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0535671

Browse files
committed
add aws arm support
1 parent 6803ee7 commit 0535671

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

amazon-arm.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"variables": {
3+
"aws_access_key": "",
4+
"aws_secret_key": "",
5+
"region": "ap-northeast-1",
6+
"ami_regions": "ap-northeast-1",
7+
"ami": "ami-034efdc866e4b4fd7",
8+
"environment": "testing",
9+
"ansible_arguments": "--skip-tags,update-only -v"
10+
},
11+
"builders": [
12+
{
13+
"type": "amazon-ebs",
14+
"access_key": "{{user `aws_access_key`}}",
15+
"secret_key": "{{user `aws_secret_key`}}",
16+
"region": "{{user `region`}}",
17+
"ami_regions": "{{user `ami_regions`}}",
18+
"source_ami": "{{user `ami`}}",
19+
"instance_type": "c6g.2xlarge",
20+
"ssh_username": "ubuntu",
21+
"ami_name": "supabase-postgres-arm-0.13.0",
22+
"tags": {
23+
"environment": "{{user `environment`}}",
24+
"appType": "postgres"
25+
},
26+
"launch_block_device_mappings": [
27+
{
28+
"device_name": "/dev/sda1",
29+
"volume_size": 16,
30+
"volume_type": "gp2",
31+
"delete_on_termination": true
32+
}
33+
]
34+
}
35+
],
36+
"provisioners": [
37+
{
38+
"type": "shell",
39+
"inline": [
40+
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done"
41+
]
42+
},
43+
{
44+
"type": "ansible",
45+
"user": "ubuntu",
46+
"playbook_file": "ansible/playbook.yml",
47+
"extra_arguments": "{{user `ansible_arguments`}}"
48+
},
49+
{
50+
"execute_command": "echo 'packer' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'",
51+
"type": "shell",
52+
"scripts": [
53+
"scripts/01-test",
54+
"scripts/02-credentials_cleanup.sh",
55+
"scripts/90-cleanup.sh",
56+
"scripts/91-log_cleanup.sh"
57+
]
58+
}
59+
]
60+
}

0 commit comments

Comments
 (0)
0