23 lines
510 B
JSON
23 lines
510 B
JSON
{
|
|
"builders": [{
|
|
"type": "amazon-ebs",
|
|
"ami_name": "packer-test {{timestamp}}",
|
|
"instance_type": "m1.small",
|
|
"region": "us-east-1",
|
|
"ssh_username": "ubuntu",
|
|
"source_ami": "ami-0568456c",
|
|
"tags": {
|
|
"packer-test": "true"
|
|
}
|
|
}],
|
|
|
|
"provisioners": [{
|
|
"type": "file",
|
|
"source": "file.txt",
|
|
"destination": "/tmp/file.txt"
|
|
}, {
|
|
"type": "shell",
|
|
"inline": ["cat /tmp/file.txt"]
|
|
}]
|
|
}
|