Skip to content

kupe_database

Reads an existing Kupe database by name. Credentials are never returned.

data "kupe_database" "orders" {
name = "orders-db"
}
output "orders_db_running_version" {
value = data.kupe_database.orders.current_version
}
  • name (String) Database name to look up.
  • created_at (String) Timestamp when the database was created.
  • current_version (String) Full engine version running, e.g. 18.0.
  • deletion_protection (Boolean) Whether the Kupe platform refuses to delete the database.
  • engine (String) Database engine, e.g. postgres.
  • high_availability (Boolean) Whether the database runs two instances with a synchronous standby.
  • phase (String) Current phase: Pending, Provisioning, Running, Degraded or Terminating.
  • resources (Attributes) Per-instance resources. (see below for nested schema)
  • version (String) Requested engine major version, e.g. 18.

Read-Only:

  • cpu (String) CPU, e.g. 500m.
  • memory (String) Memory, e.g. 1Gi.
  • storage (String) Storage, e.g. 10Gi.