پرش به مطلب اصلی

arvancloud_dbaas_postgresql_database (Resource)

Creates a logical database on a PostgreSQL DBaaS instance.

Example Usage

resource "arvancloud_dbaas_postgresql_primary_instance" "db" {
name = "app-postgresql"
availability_zone = "ir-thr-ba1"
flavor_ref = "g2-4-2-0"
datastore_version = "17.3"
volume_size = 50
tags = ["tf", "postgresql"]
}

resource "arvancloud_dbaas_postgresql_database" "example" {
instance_id = arvancloud_dbaas_postgresql_primary_instance.db.id
name = "app_db"
}

Schema

Required

  • instance_id (String) Stable id of the parent PostgreSQL instance.
  • name (String)

Read-Only

  • id (String) <instance_id>/<database_name>.
  • response_instance_id (String) Instance id returned by the create-database API.