DbaaS Postgres
Database
Terraform reference for Database.
Schema Properties
| Property | Type | Description |
|---|---|---|
architecture Computed | string | The database architecture (e.g., v1, v2). |
cluster Computed | string | The database cluster hosting the database. Assigned by the system. |
communities Default | list(string) | List of tenant names (communities) that have access to this database. Examples: ["core","axis","ahub"] |
connection_usage_percent Computed | number | The percentage of connection usage relative to its total capacity. |
db_group Default | boolean | When true, creates nominative group roles specific to this database rather than tenant-scoped ones. |
endpoint Computed | string | The endpoint of the database. |
id Computed | integer | The unique identifier of the database in the CMDB. Assigned by the system upon database creation. |
instance Computed | string | The specific instance ID (db_iid) where the database runs. |
last_backup_date Computed | string | The date of the last backup (snapshot) for the cluster hosting this database. |
maintenance_windows Default | list(object) | Scheduled maintenance windows for the database. Examples: [{"hour_end":"04:00","hour_start":"02:00"}][{"hour_end":"00:00","hour_start":"22:00"}] |
major_release_version RequiredDefault | integer | The PostgreSQL major version. Required; must be one of the available releases. On update it can only be increased, which triggers a major-version upgrade. |
master_node_location Computed | string | The datacenter where the master node of the database is located. |
max_connections Default | integer | The maximum number of connections allowed for this database. Examples: 100500 |
minor_release_version Computed | string | The PostgreSQL minor version (e.g., 17.4). Must be in the list of available releases. |
name RequiredForceNew | string | The name of the database. Must follow the pattern {tenant}_<name>. Examples: axis_mydbcore_users |
size Default | integer | The maximum size of the database in gigabytes. Sizes above the service-configured limit require an admin approval gate. Examples: 1050 |
status Computed | string | Current status of the database instance. |
storage_usage_percent Computed | number | The percentage of storage usage relative to its total capacity. |
resource "gi_dbaas_pg_database" "example" { attributes = { major_release_version = "13" name = "example-name" }}