blob: 8d8f552b279d0c240f3aaf9cf6e75c36f5c7ed09 [file] [log] [blame]
Kelley Spoon643c8612024-10-28 06:36:28 -05001{
2 "variables": {
Saheer Babu5013e9d2025-02-05 12:04:59 +00003 "vpc_region": "eu-west-1",
4 "ssh_username": "ubuntu",
5 "git_hash": "",
6 "vpc_id": "{{env `VPC_ID`}}",
7 "subnet_id": "{{env `SUBNET_ID`}}"
Kelley Spoon643c8612024-10-28 06:36:28 -05008 },
9 "builders": [
10 {
11 "type": "amazon-ebs",
12 "name": "ubuntu-20.04-mbedtls",
Saheer Babu5013e9d2025-02-05 12:04:59 +000013 "vpc_id": "{{user `vpc_id`}}",
14 "subnet_id": "{{user `subnet_id`}}",
Kelley Spoon643c8612024-10-28 06:36:28 -050015 "region": "{{user `vpc_region`}}",
16 "source_ami_filter": {
17 "filters": {
18 "virtualization-type": "hvm",
19 "name": "ubuntu/images/*ubuntu-focal-20.04-arm64-server-*",
20 "root-device-type": "ebs"
21 },
22 "owners": ["099720109477"],
23 "most_recent": true
24 },
25 "instance_type": "t4g.large",
26 "ssh_username": "{{user `ssh_username`}}",
27 "ami_name": "jenkins-aarch64-{{isotime \"2006-01-02-1504\"}}",
Saheer Babu5013e9d2025-02-05 12:04:59 +000028 "ami_regions": ["eu-west-1" ],
Kelley Spoon643c8612024-10-28 06:36:28 -050029 "launch_block_device_mappings": [
30 {
31 "device_name": "/dev/sda1",
32 "volume_type": "gp3",
33 "volume_size": "50",
34 "delete_on_termination": true
35 }
Saheer Babu5013e9d2025-02-05 12:04:59 +000036 ],
37 "run_tags": {
38 "Name": "packer_builder"
39 }
Kelley Spoon643c8612024-10-28 06:36:28 -050040 }
41 ],
42 "provisioners": [
43 {
44 "type": "shell",
45 "inline": [ "sleep 60" ]
46 },
47 {
48 "type": "shell",
49 "script": "ubuntu.sh",
50 "execute_command": "{{.Vars}} sudo -E sh -eux '{{.Path}}'"
51 }
52 ]
53}