Python +
DigitalOcean = Sweetness

Quickly deploying and managing Droplets

Sean Swehla / Phill Baker

What's Digital Ocean?

What's Digital Ocean?

API Docs

DigitalOcean pythonic style

#digitalocean.py


#!/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!

					

The Goal!

“Spin up app servers,
add them to the load balancer,
scale in realtime,
profit!”

Demo!!!

What do I do with this
really, really simple demo?

  • Idemnipotent deploys
  • Auto scaling based on traffic events
  • On demand compute

THE END

Questions? Snarky comments? Answers?


digitalocean.com/jobs <- you know you want to