Global InfraGlobal Infra Cloud
DbaaS Postgres

Database Role

Terraform reference for Database Role.

Schema Properties

PropertyTypeDescription
database_id
Required
stringAsset ID of the parent database (platform/region/architecture/dbName). Used by the platform to register a parent relation and validate the database exists at creation time.
Examples:sb/eu/2/axis_mydb
extra_roles_member
Default
list(string)Extra membership for the managed role.
Examples:["pg_monitor"]["pg_read_all_stats"]
max_connections
Default
integerThe maximum number of connections allowed for this role.
Examples:50100
name
RequiredForceNew
stringDatabase role name.
Examples:axis_mydb_writercore_mydb_reader
password
Default
stringCustom role password.
password_location
Computed
stringThe Vault UI URL where the role password is stored.
role_member
RequiredDefault
stringRole standard membership. Linked to the IDM permission mapping in dbaas group.
Examples:rorw
role_parameters
Default
objectRole-level parameters.
resource "gi_dbaas_pg_database_role" "example" {  attributes = {    database_id = "example-database_id"    name        = "example-name"    role_member = "ro"  }}

Usage Notes