Dependencies
Database
To add database service to your deployment, add one of the database type (postgresql or mysql) section to your dependencies in project.outblocks.yaml configuration file:
dependencies:
database:
type: postgresql
version: '13'
tier: ${var.gcp_database_tier}
Main configuration
Option | Type | Value | Description |
---|---|---|---|
version | integer | version number (e.g. 13) | Specify the database version, and refer to cloud provider docs for possible options. |
high_availability | boolean | true/false | Makes the database highly available, meaning it will have a read replica available in case of master failure. |
tier | string | e.g. db-f1-micro | Specify the tier of the database. Refer to cloud provider docs for possible options. |
flags | object | Database flags, refer to cloud provider docs for possible options. | |
users | object | Database users. |
Users configuration
Option | Type | Value | Description |
---|---|---|---|
password | string | password<br /> (default: randomly generated) | Explicitly set password defaults to a randomly generated string. |
hostname | string | IP address | The hostname that the user is allowed to connect from. Not all databases may support it. |