DigitalOcean Account Setup
DigitalOcean is the primary cloud platform for initial HackerOps labs. Itβs developer-friendly, cost-effective, and perfect for learning cloud infrastructure fundamentals.
Tip
Free Credit: New DigitalOcean accounts receive $100-200 in free credits, which is more than enough for all lab activities.
Create DigitalOcean Account
Sign up options:
- With referral credit: DigitalOcean Signup (Bonus Credit)
- Standard signup: DigitalOcean
Info
Credit Card Required: DigitalOcean requires a credit card for verification to prevent spam and abuse. You wonβt be charged if you stay within the free credit limits.
Generate API Token
For Terraform automation and CLI access, youβll need an API token:
-
Access API Section - In the DigitalOcean dashboard, navigate to βAPIβ in the left sidebar or bottom menu
-
Generate New Token - Click the βGenerate New Tokenβ button in the Personal Access Tokens section
-
Configure Token - Give your token a descriptive name like βhackerops-labsβ and ensure βWriteβ access is enabled
-
Save Token Securely - Copy and save the API token immediately as you wonβt be able to see it again
-
Keep Token Private - Never share this token as it provides full access to your DigitalOcean account
Caution
Security Warning: Your API token has full access to your DigitalOcean account. Store it securely and never commit it to GitHub repositories.
Install DigitalOcean CLI (doctl)
The DigitalOcean CLI tool is useful for managing resources:
# Download and install doctlcd ~wget https://github.com/digitalocean/doctl/releases/download/v1.94.0/doctl-1.94.0-linux-amd64.tar.gztar xf doctl-1.94.0-linux-amd64.tar.gzsudo mv doctl /usr/local/bin
# Verify installationdoctl version
# Using Homebrew (recommended)brew install doctl
# Or download from GitHub releases:# https://github.com/digitalocean/doctl/releases
# Verify installationdoctl version
# Using Chocolateychoco install doctl
# Or download Windows binary from:# https://github.com/digitalocean/doctl/releases
# Verify installationdoctl version
Configure doctl
Authenticate doctl with your API token:
-
Authenticate doctl - Run
doctl auth init
and enter your API token when prompted -
Verify Access - Test with
doctl account get
to display your account information -
List Available Resources - Try
doctl compute droplet list
to see your current droplets (should be empty for new accounts)
Test Your Setup
Verify everything is working:
# Check account detailsdoctl account get
# List available regionsdoctl compute region list
# List available droplet sizesdoctl compute size list
# List available imagesdoctl compute image list --public | head -10
Tip
Success! If these commands return data without errors, DigitalOcean is properly configured and ready for the labs.
Useful DigitalOcean Regions
Recommended regions for HackerOps labs:
- NYC1 (New York) - East Coast US
- SFO3 (San Francisco) - West Coast US
- LON1 (London) - Europe
- SGP1 (Singapore) - Asia Pacific
Choose the region closest to your location for best performance.
Next Steps
With DigitalOcean configured:
- Complete other cloud setups - Configure AWS and Azure if needed
- Start Lab 1 - Deploy your first virtual machine
- Explore the dashboard - Familiarize yourself with the DigitalOcean interface
Cost Management
Caution
Important: Always destroy lab resources when finished to avoid consuming your free credits unnecessarily.
Cost-saving tips:
- Use the smallest droplet sizes for learning ($5-10/month)
- Destroy droplets immediately after labs
- Monitor your account balance in the DigitalOcean dashboard
- Set up billing alerts for spending thresholds
- Take advantage of the $100+ free credit for new accounts