Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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 postgresql://postgres:password@localhost:5432

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

Confirm migration succeeded

docker compose exec -it postgres psql postgresql://postgres:password@localhost:5432
\dt
\q