PostgreSQL

Terrashine requires postgreSQL to store metadata associated with upstream registries and downloaded terraform providers. Terrashine does not store any terraform providers inside of postgreSQL itself so the requirements are typically fairly light.

Please see postgreSQL's excellent documentation to set up the database.

Database migrations

When upgrading or starting up terrashine for the first time, we need to run database migrations against the database. We can perform the migration with the following command.

terrashine migrate --database-url postgres://postgres:password@localhost/

This command should be executed from a checkout of the git repository associated with the version.