Skip to content

Instantly share code, notes, and snippets.

@elblivion
Created August 5, 2015 14:17
Show Gist options
  • Save elblivion/1050ceada0d228f2204e to your computer and use it in GitHub Desktop.
Save elblivion/1050ceada0d228f2204e to your computer and use it in GitHub Desktop.
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"source_ami": "ami-8cb8e7e4",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-quick-start {{timestamp}}",
"ami_regions": [
"us-east-1",
"us-west-2",
"eu-west-1"
],
"ami_users": [
"<aws_account_1>",
"<aws_account_2>"
]
}
],
"provisioners": [
{
"type": "shell",
"script": "setup.sh",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh {{ .Path }}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment