Getting started
Deploy MySQL and Redis on AWS in less than 10 lines of code
1. Create a configuration file
---
# Optional - by default stackmate uses AWS
# provider: aws
# Optional - by default stackmate deploys to eu-central-1
# region: eu-central-1
state:
# 👇 This will store the state file in our local machine
# and should be OUTSIDE your source code repository,
# so that you make sure it NEVER GETS COMMITTED to git
#
# Alternatively, you can use an S3 bucket to store the state
# you can find more information by the end of this guide
workspaceDir: /Users/<myusername>/.stackmate-states/my-cool-project
environments:
production:
mysql-database:
type: mysql
# Note: Use the externalLinks attribute to allow a resource
# that's not deployed by stackmate to access the database
# externalLinks:
# - 1.2.3.4
redis-cache:
type: redis
2. Create the directory to store the Terraform state in
3. Pick an AWS profile to use
4. Run the deployment!
5. Bonus points: Use an S3 bucket to store the state
Last updated