Skip to content

Instantly share code, notes, and snippets.

@falexandrou
Created March 29, 2022 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 falexandrou/72b50925438ce7351160892556002703 to your computer and use it in GitHub Desktop.
Save falexandrou/72b50925438ce7351160892556002703 to your computer and use it in GitHub Desktop.
Sample stackmate YAML file
---
# Basic configuration
name: awesome-nodejs-project # The project's name
provider: aws # Which cloud provider to use
region: eu-central-1 # The default region to deploy to
# Terraform state storage
state:
bucket: project-name # Use a private, encrypted S3 bucket to store the state
# Credentials storage
secrets:
provider: aws # Use the AWS Secrets manager to store credentials
# Environments configuration
stages:
production:
# MySQL 8.0 instance with 30GB of storage in the default profile
maindb:
type: mysql
size: db.t3.medium
storage: 30
# Redis cluster
primarycache:
type: redis
size: cache.t3.micro
# Staging environment, copies the production stage without the cache
staging:
from: production
skip:
- primarycache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment