Provisioning PostgreSQL#
This tutorial creates an Ametnes-managed PostgreSQL database: a private data service you reach over an Ametnes network access endpoint.
Prerequisites#
- A service location (see Service Location).
Networking is automatic by default
Creating a network access resource is optional. If you do not create one, Ametnes manages network access for the location and your service attaches to it automatically. Create your own only if you want to control exposure (see Network Access Resources).
Create the PostgreSQL service#
Select a kind (service/postgres:<version>), a tier, storage and node count.
PostgreSQL offers 14.0, 15.9, 16.0 and 17.6.
- Navigate to Services and click New Service.
- Name it (for example
PostgresService). - Kind: PostgreSQL 17.6 Service.
- Location: your data service location. Leave Network unset to let Ametnes manage it.
- Architecture: Starter for evaluation, Small+ for production.
- Set the Admin Password for the
postgresuser (see disaster recovery if you plan replication). - Click Create Service and wait for status
ready.
Connect#
Use the connections returned by the service (or the console's connection panel). PostgreSQL listens on the primary port; the host is the service's DNS name on your zone.
Notes:
- The admin user is always
postgres; the password comes fromspec.secretwhen you do not set one. - The connection endpoint is published automatically. To manage exposure yourself, attach your own network access resource (see Network Access Resources).
Next#
- Disaster recovery — run a streaming standby and fail over to it.
- Scaling — change tier, nodes, storage and version.