#!/usr/bin/python
import digitalocean
manager = digitalocean.Manager(client_id=id, api_key=key)
ny_region_id = 1
ubuntu_1204_image_id = 473123
small_size_id = 66
droplet = digitalocean.Droplet(
client_id=id,
api_key=key,
name = 'do1.phillbaker.com',
region_id=ny_region_id,
image_id=ubuntu_1204_image_id,
size_id=small_size_id,
backup_active=False
)
droplet.create() # Boom!
“Spin up app servers,
add them to the load balancer,
scale in realtime,
profit!”