Skip to content

Reference architectures to showcase how users can leverage DigitalOcean's robust cloud platform to build resilient, distributed systems at scale.

Notifications You must be signed in to change notification settings

digitalocean/scale-with-simplicity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scale with Simplicity on DigitalOcean

Reference architectures to showcase how users can leverage DigitalOcean's robust cloud platform to build resilient, distributed systems at scale.

Scale With Simplicity

Prerequisites

Setup

  1. Clone this repository

    git clone https://github.com/digitalocean/scale-with-simplicity.git
    cd infrastructure
  2. Create a project.tfvars file with your DigitalOcean API token:

    cp project.tfvars.example project.tfvars
    # Add your DO TOKEN
    do_token = "your-digitalocean-api-token"

    Note: Never commit this file to version control!

Usage

  1. Initialize Terraform:

    terraform init
  2. Review the planned changes:

    terraform plan -var-file=project.tfvars -out project.out
  3. Apply the changes:

    terraform apply "project.out"   
  4. To destroy the infrastructure:

    terraform destroy -var-file="project.tfvars" 

Project Structure

├── infrastructure/              # Terraform infrastructure code
│   ├── main.tf                  # Main architecture configuration
│   ├── variables.tf             # Architecture variables
│   ├── outputs.tf               # Terraform outputs
│   ├── provider.tf              # Provider configuration (DigitalOcean)
│   ├── vpc.tf                   # VPC configuration
│   ├── postgres.tf              # PostgreSQL database configuration
│   ├── spaces.tf                # DigitalOcean Spaces configuration
│   └── project.tfvars.example   # Example project variables file

Security Notes

  • Never commit your project.tfvars file or any files containing sensitive information
  • Keep your DigitalOcean API token secure.
  • Review the planned infrasture changes before applying them.

About

Reference architectures to showcase how users can leverage DigitalOcean's robust cloud platform to build resilient, distributed systems at scale.

Topics

Resources

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages