blob: 01f6e935845eea6f48b676a7de7e4d36865acb8f [file] [log] [blame]
Arthur She68e717e2021-12-07 14:41:23 -08001{
2 "variables": {
Arthur She6891b662022-11-04 18:08:31 +01003 "vpc_region": "us-east-1",
Arthur She68e717e2021-12-07 14:41:23 -08004 "ssh_username": "ubuntu"
5 },
6 "builders": [
7 {
8 "type": "amazon-ebs",
9 "name": "ubuntu-20.04-mbedtls",
10 "vpc_id": "vpc-d28c0ca9",
11 "subnet_id": "subnet-a0d573af",
12 "region": "{{user `vpc_region`}}",
13 "source_ami_filter": {
14 "filters": {
15 "virtualization-type": "hvm",
16 "name": "ubuntu/images/*ubuntu-focal-20.04-amd64-server-*",
17 "root-device-type": "ebs"
18 },
19 "owners": ["099720109477"],
20 "most_recent": true
21 },
22 "instance_type": "m5a.large",
23 "ssh_username": "{{user `ssh_username`}}",
24 "ami_name": "jenkins-amd64-{{isotime \"2006-01-02-1504\"}}",
25 "ami_users": [
26 "987685672616"
27 ],
Kelley Spoon723f0632022-11-17 06:50:37 -060028 "ami_regions": ["eu-central-1" ],
Arthur She68e717e2021-12-07 14:41:23 -080029 "snapshot_users": [
30 "987685672616"
31 ],
32 "launch_block_device_mappings": [
33 {
34 "device_name": "/dev/sda1",
Arthur She646f87c2023-02-06 23:00:20 -080035 "volume_type": "gp3",
36 "volume_size": "30",
Arthur She68e717e2021-12-07 14:41:23 -080037 "delete_on_termination": true
38 }
39 ]
40 }
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}