forked from javahometech/packer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
37 lines (37 loc) · 819 Bytes
/
template.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
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "amzn2-ami-hvm-2.0.*.1-x86_64-ebs",
"root-device-type": "ebs"
},
"owners": [
"amazon"
],
"most_recent": true
},
"instance_type": "t2.micro",
"ssh_username": "{{user `ssh_username`}}",
"ami_name": "packer-example {{timestamp}}",
"tags":{
"Name": "JavaHome - {{timestamp}}"
}
}
],
"provisioners": [
{
"type": "shell",
"script": "apache.sh"
}
]
}