Stackmate offers infrastructure deployment for major managed database services (like AWS RDS for example)
- A managed database instance with sane defaults
type- string - It should be eithermysql,postgresqlormariadb
provider- string - by default is set toawssize- string - The instance size. Should be one of the instances the cloud provider has availableversion- string - The database version to use. These are dictated by the cloud provider (eg. AWS) and it's one of the versions they currently support.storage- number - The size of the storage space in Gigabytesdatabase- string - The name of the database to deployport- number - The port to use. By default,3306is assigned tomysqlandmariadband5432forpostgresqlmonitoring- object - Any monitoring options available for the service. Example configuration is shown below
The typical Common Service Options apply here too.
The password for the root user associated with the database, is stored as a secret on your provider, you can link directly to it through your provider's secret manager (eg. AWS secrets manager)
# ... the rest of the configuration ...
environments:
production:
# ... more services ...
my-database:
type: mysql
provider: aws # optional when your provider's set to aws
region: eu-central-1 # optional if you have a region set for the project
size: db.t2.micro
storage: 30
version: 8.0
database: my-database
profile: default # this is the default
monitoring:
urls:
- https://a-webhook-to-get-alerted-by.com
emails:
- database-alerts@mywebsite.com