-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatest_amazon_linux_2.0_arm64.json
57 lines (57 loc) · 1.38 KB
/
latest_amazon_linux_2.0_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
{
"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": {
"architecture": "arm64",
"name": "amzn2-ami-hvm-*",
"root-device-type": "ebs",
"virtualization-type": "hvm"
},
"owners": [
"137112412989"
],
"most_recent": true
},
"ssh_username": "ec2-user",
"ami_name": "my-amzn2-linux-arm64-{{isotime \"2006-01-02-150405\"}}",
"ami_description": "Latest Amazon Linux 2.0 arm64 with updates",
"run_tags": {
"Name": "packer-builder-agent"
},
"tags": {
"Name": "my-amzn2-linux-2.0-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 yum update -y",
"sudo yum autoremove -y",
"cat /etc/system-release"
],
"type": "shell"
}
],
"post-processors": [
[
{
"output": "manifest.json",
"strip_path": true,
"type": "manifest"
}
]
]
}