The resources and data sources of the ews provider for Postgres. Setting up the provider: Terraform & OpenTofu.
Resources
dcloud_db_branchA copy-on-write branch of a managed database: a masked clone on the database's branch pool, with its own port and a new password for every login role (dcloud rds branches get-credentials). The first branch of a database builds the pool (minutes); later ones take seconds. Suits a long-lived staging or preview database; pull-request branches are made by the branch settings, not here.
dcloud_db_extensionA PostgreSQL extension switched on in a database's own database (db_name). Only extensions of the platform's catalog can be enabled. One that needs a preload library (e.g. pg_cron) asks for a reboot first and fails here until the database has restarted. Destroying it drops the extension (refused while objects depend on it).
dcloud_db_instanceA managed PostgreSQL database. The master password is generated and filed in Secrets (master_secret_id); it never passes through Terraform.
dcloud_db_loginA login (Postgres role) on a managed database. Its password is generated and filed in Secrets (secret_id).
dcloud_db_parametersThe PostgreSQL parameter overrides of a database: this resource owns all of them, so an override set elsewhere is reset on the next apply. A parameter left out runs at its default (sized from the machine). Destroying it resets every override. Parameters marked restart take effect at the next restart.
dcloud_db_read_replicaA reader of a cluster database (topology = "cluster"): one more machine of the cluster's class, streaming from the leader and serving on the reader endpoint once it has caught up. Never promoted. At most 5 per cluster.
dcloud_db_replication_slotA logical replication slot on a managed database, for CDC (Debezium, Airbyte) or a subscription. On a cluster it is kept on every member, so it survives a failover. Needs logical_replication on the database.
Data sources
dcloud_db_instance_classesMachine sizes a managed database can run on (instance_class of dcloud_db_instance).