» scaleway_rdb_instance_beta

Creates and manages Scaleway Database Instances. For more information, see the documentation.

» Examples

» Basic

resource scaleway_rdb_instance_beta main {
    name = "test-rdb"
    node_type = "db-dev-s"
    engine = "PostgreSQL-11"
    is_ha_cluster = true
    disable_backup = true
    user_name = "my_initial_user"
    password = "thiZ_is_v&ry_s3cret"
}

» Arguments Reference

The following arguments are supported:

  • node_type - (Required) The type of database instance you want to create (e.g. db-dev-s).
  • engine - (Required) Database Instance's engine version (e.g. PostgreSQL-11).
  • user_name - (Required) Identifier for the first user of the database instance.
  • password - (Required) Password for the first user of the database instance.
  • is_ha_cluster - (Optional) Enable or disable high availability for the database instance.
  • name - (Optional) The name of the Database Instance.

  • disable_backup - (Optional) Disable automated backup for the database instance.

  • tags - (Optional) The tags associated with the Database Instance.

  • region - (Defaults to provider region) The region in which the Database Instance should be created.

  • organization_id - (Defaults to provider organization_id) The ID of the organization the Database Instance is associated with.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of the Database Instance.
  • endpoint_ip - The IP of the Database Instance.
  • endpoint_port - The port of the Database Instance.
  • read_replicas - List of read replicas of the database instance.
    • ip - IP of the replica.
    • port - Port of the replica.
    • name - Name of the replica.
  • certificate - Certificate of the database instance.

» Import

Database Instance can be imported using the {region}/{id}, e.g.

$ terraform import scaleway_rdb_instance_beta.rdb01 fr-par/11111111-1111-1111-1111-111111111111