GitHub

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

OptionTypeValueDescription
versionintegerversion number (e.g. 13)Specify the database version, and refer to cloud provider docs for possible options.
high_availabilitybooleantrue/falseMakes the database highly available, meaning it will have a read replica available in case of master failure.
tierstringe.g. db-f1-microSpecify the tier of the database. Refer to cloud provider docs for possible options.
flagsobjectDatabase flags, refer to cloud provider docs for possible options.
usersobjectDatabase users.

Users configuration

OptionTypeValueDescription
passwordstringpassword<br /> (default: randomly generated)Explicitly set password defaults to a randomly generated string.
hostnamestringIP addressThe hostname that the user is allowed to connect from. Not all databases may support it.
Previous
Functions