Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created December 8, 2022 18:42
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 jkeam/38df983988595fff9b21d5c8d190563c to your computer and use it in GitHub Desktop.
Save jkeam/38df983988595fff9b21d5c8d190563c to your computer and use it in GitHub Desktop.
Create Digital Ocean Droplet
#!/bin/bash
# Types of Droplets
# s-2vcpu-4gb
# s-4vcpu-8gb
#
# Creation Params
# doctl compute ssh-key list
# doctl compute droplet list
#
# List Droplet
# doctl compute droplet list
#
# Destroy
# doctl compute droplet delete drstrange
APP_NAME=drstrange
doctl compute droplet create \
--image fedora-37-x64 \
--size s-4vcpu-8gb \
--region nyc1 \
--vpc-uuid some-random-uuid \
--tag-names 'working,awesome' \
--ssh-keys ssh-key-id \
--wait \
${APP_NAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment