packer-cn/builder/amazon/examples/apache_server/apache.json

32 lines
730 B
JSON
Raw Normal View History

{
2020-07-23 01:53:16 -04:00
"variables":
{
"accesskey": "",
"secretkey": "",
"shellpath": "packages.sh"
},
"builders":[
{
"type": "amazon-ebs",
"access_key": "{{user `accesskey`}}",
"secret_key": "{{user `secretkey`}}",
"region": "ap-south-1",
"source_ami": "ami-sa7608343426b",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "apache",
"tags": {
"OS_Version": "Ubuntu",
"Release": "Latest"
}
}
2020-07-23 01:53:16 -04:00
],
"provisioners":[
{
"type": "shell",
"script": "{{user `shellpath`}}"
}
2020-07-23 01:53:16 -04:00
]
}