DbaaS Postgres
Database Role
Terraform reference for Database Role.
Schema Properties
| Property | Type | Description |
|---|---|---|
database_id Required | string | Asset 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 | integer | The maximum number of connections allowed for this role. Examples: 50100 |
name RequiredForceNew | string | Database role name. Examples: axis_mydb_writercore_mydb_reader |
password Default | string | Custom role password. |
password_location Computed | string | The Vault UI URL where the role password is stored. |
role_member RequiredDefault | string | Role standard membership. Linked to the IDM permission mapping in dbaas group. Examples: rorw |
role_parameters Default | object | Role-level parameters. |
resource "gi_dbaas_pg_database_role" "example" { attributes = { database_id = "example-database_id" name = "example-name" role_member = "ro" }}