Skip to content

Instantly share code, notes, and snippets.

@ymek
Created October 31, 2013 21:45
Show Gist options
  • Select an option

  • Save ymek/7257742 to your computer and use it in GitHub Desktop.

Select an option

Save ymek/7257742 to your computer and use it in GitHub Desktop.
{
"variables": {
"aws_access_key_id": "",
"aws_secret_access_key": ""
},
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/chef.sh",
"scripts/cleanup.sh"
],
"override": {
"amazon-ebs": {
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E '{{ .Path }}'"
}
}
}
],
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key_id`}}",
"secret_key": "{{user `aws_secret_access_key`}}",
"region": "us-east-1",
"source_ami": "ami-1ebb2077",
"instance_type": "c1.medium",
"ssh_username": "ubuntu",
"ami_name": "bt-ubuntu-precise-12.04-ppc-{{timestamp}}"
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment