kupe_database
Reads an existing Kupe database by name. Credentials are never returned.
Example Usage
Section titled “Example Usage”data "kupe_database" "orders" { name = "orders-db"}
output "orders_db_running_version" { value = data.kupe_database.orders.current_version}Schema
Section titled “Schema”Required
Section titled “Required”name(String) Database name to look up.
Read-Only
Section titled “Read-Only”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.
Nested Schema for resources
Section titled “Nested Schema for resources”Read-Only:
cpu(String) CPU, e.g.500m.memory(String) Memory, e.g.1Gi.storage(String) Storage, e.g.10Gi.