Created
March 29, 2022 20:17
-
-
Save falexandrou/72b50925438ce7351160892556002703 to your computer and use it in GitHub Desktop.
Sample stackmate YAML file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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