-
Notifications
You must be signed in to change notification settings - Fork 0
/
latest_ubuntu_20.04_lts_arm64.json
59 lines (59 loc) · 1.62 KB
/
latest_ubuntu_20.04_lts_arm64.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"variables": {
"aws_profile": "{{env `AWS_PROFILE`}}",
"region": "us-east-1"
},
"builders": [
{
"type": "amazon-ebs",
"profile": "{{user `aws_profile`}}",
"region": "{{user `region`}}",
"instance_type": "r6g.medium",
"source_ami_filter": {
"filters": {
"name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-*",
"root-device-type": "ebs",
"virtualization-type": "hvm",
"architecture": "arm64"
},
"owners": [
"099720109477"
],
"most_recent": true
},
"ssh_username": "ubuntu",
"ami_name": "my-ubuntu-20.04-lts-arm64-{{isotime \"2006-01-02-150405\"}}",
"ami_description": "Latest Ubuntu 20.04 LTS ARM64 with updates",
"run_tags": {
"Name": "packer-builder-agent"
},
"tags": {
"Name": "my-ubuntu-20.04-lts-arm64",
"architecture": "arm64",
"Author": "alex.zimin@gmail.com"
}
}
],
"provisioners": [
{
"inline": [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done",
"sudo DEBIAN_FRONTEND=noninteractive apt-get update -y",
"sudo DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y",
"sudo DEBIAN_FRONTEND=noninteractive apt-get autoclean -y",
"sudo DEBIAN_FRONTEND=noninteractive apt-get autoremove -y",
"lsb_release -a"
],
"type": "shell"
}
],
"post-processors": [
[
{
"output": "manifest.json",
"strip_path": true,
"type": "manifest"
}
]
]
}