Configuration File
Last updated
Was this helpful?
Last updated
Was this helpful?
Stackmate uses a really simple configuration file that describes your infrastructure and resides in your application's directory. It is advised to store it along with your application's code and commit it in source control so that you can track your infrastructure's changes consistently.
The configuration file can be either a YAML or JSON file and examples are provided in the stackmate repository under the directory.
The stackmate configuration file is designed to be as simple and straight-forward as it gets. The following list summarizes the configuration attributes that you can apply and you can find more details in the corresponding sections.
- Required - The state storage configuration. Applies to all environments
- Required - The environments and list of services that are available
- Optional - The default cloud provider for the services deployed (by default we're using aws
)
- Optional - The default region to deploy the services within (by default we're using eu-central-1
)
The following configuration file, will deploy two environments, production
and staging
and each will hold two AWS-managed services:
A MySQL database on RDS instance of db.t3.medium
size and
A Redis cache of cache.t3.medium
size
The services will be provisioned with sane defaults and will be within the free tier