Skip to content

Instantly share code, notes, and snippets.

@datysho
Created March 4, 2017 20:17
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 datysho/978ecc226185228e090a73b8db169a82 to your computer and use it in GitHub Desktop.
Save datysho/978ecc226185228e090a73b8db169a82 to your computer and use it in GitHub Desktop.
import digitalocean
droplet = digitalocean.Droplet(token="secretspecialuniquesnowflake",
name='Example',
region='nyc2', # New York 2
image='ubuntu-14-04-x64', # Ubuntu 14.04 x64
size_slug='512mb', # 512MB
backups=True)
droplet.create()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment