Create Postgres ΒΆ

Create a Postgres database.

Create .nais/postgres.yaml in your repository:

.nais/postgres.yaml

Replace <POSTGRES-NAME> with the name of your database. See the Postgres manifest reference for the field definition, or review the full example if you need to set resources or high availability.

Apply the manifest from your deploy workflow:

.github/workflows/deploy-nais-resources.yml

See Deploy manifest changes without rebuilding for a complete pipeline example. To change settings later, edit the manifest or see Manage Postgres.

Create a Postgres database:

bash

The CLI asks for confirmation before creating the database. It uses platform defaults unless you set options:

bash

To change settings later, see Manage Postgres.

  1. Open your team in Nais Console and select Postgres.
  2. Select Create Postgres.
  3. Fill in the form and select Create Postgres.

To change settings later, see Manage Postgres.

Provisioning continues asynchronously. Follow the status on the database's page in Nais Console.

🎯 Connect an Application or Job