Skip to content

Instantly share code, notes, and snippets.

@abhiyerra
Last active September 26, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhiyerra/95c46162dbf774b5d86ebeb82aee7706 to your computer and use it in GitHub Desktop.
Save abhiyerra/95c46162dbf774b5d86ebeb82aee7706 to your computer and use it in GitHub Desktop.
parkingspot
{
"builders": [
{
"type": "amazon-ebs",
"region": "{{env `PARKINGSPOT_REGION }}",
"source_ami": "ami-fa82739a", // Have to do some logic to make sure that the AMI is correct. Also pass the -region flag to limit machines to a certain region.
"spot_price": "{{env `PARKINGSPOT_BID`}}",
"instance_type": "{{env `PARKINGSPOT_INSTANCE_TYPE`}}",
"vpc_id": "vpc-79f9021d",
"ssh_username": "ubuntu",
"ami_name": "parkingspot-ubuntu-16.04 {{timestamp}}",
"ami_block_device_mappings": [
{
"delete_on_termination": true,
"volume_type": "gp2",
"volume_size": "5",
"device_name": "/dev/sda1"
}
]
}
],
"provisioners": [
{
"type": "shell",
"script": "setup_things.sh"
},
{
"type": "shell",
"inline": "sudo reboot"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment