Global InfraGlobal Infra Cloud
DbaaS Postgres

Database

Terraform reference for Database.

Schema Properties

PropertyTypeDescription
architecture
Computed
stringThe database architecture (e.g., v1, v2).
cluster
Computed
stringThe 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
numberThe percentage of connection usage relative to its total capacity.
db_group
Default
booleanWhen true, creates nominative group roles specific to this database rather than tenant-scoped ones.
endpoint
Computed
stringThe endpoint of the database.
id
Computed
integerThe unique identifier of the database in the CMDB. Assigned by the system upon database creation.
instance
Computed
stringThe specific instance ID (db_iid) where the database runs.
last_backup_date
Computed
stringThe 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
integerThe 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
stringThe datacenter where the master node of the database is located.
max_connections
Default
integerThe maximum number of connections allowed for this database.
Examples:100500
minor_release_version
Computed
stringThe PostgreSQL minor version (e.g., 17.4). Must be in the list of available releases.
name
RequiredForceNew
stringThe name of the database. Must follow the pattern {tenant}_<name>.
Examples:axis_mydbcore_users
size
Default
integerThe maximum size of the database in gigabytes. Sizes above the service-configured limit require an admin approval gate.
Examples:1050
status
Computed
stringCurrent status of the database instance.
storage_usage_percent
Computed
numberThe percentage of storage usage relative to its total capacity.
resource "gi_dbaas_pg_database" "example" {  attributes = {    major_release_version = "13"    name                  = "example-name"  }}

Usage Notes