Last active
September 26, 2016 22:52
-
-
Save abhiyerra/95c46162dbf774b5d86ebeb82aee7706 to your computer and use it in GitHub Desktop.
parkingspot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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