-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.json
35 lines (35 loc) · 1.35 KB
/
nginx.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
{
"builders": [
{
"type": "amazon-ebs",
"region": "eu-west-1",
"ami_name": "{{user 'ami_name'}}-{{timestamp}}",
"instance_type": "{{user 'instance_size'}}",
"ssh_username": "{{user 'ssh_username'}}",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "amzn2-ami-hvm-*",
"root-device-type": "ebs"
},
"most_recent": true,
"owners": "amazon"
},
"tags": {
"Name": "Nginx AMI",
"BuiltBy": "Packer"
}
}
],
"description": "AWS Image",
"provisioners": [
{
"type": "shell",
"inline": [
"sudo yum update -y",
"sudo amazon-linux-extras install nginx1",
"sudo systemctl start nginx.service"
]
}
]
}