Skip to content

scaleway-terraform-modules/terraform-scaleway-ddb

Terraform / Scaleway

Purpose

This repository is used to manage Document DB instances on scaleway using terraform.

Usage

module "my_cluster" {
  source  = "scaleway-terraform-modules/ddb/scaleway"
  version = "0.0.1"

  # insert required variables here
}

Requirements

Name Version
terraform ~> 1
random >= 3.4.3
scaleway >= 2.29.0

Resources

Name Type
random_password.this resource
scaleway_documentdb_database.additional resource
scaleway_documentdb_instance.main resource

Inputs

Name Description Type Default Required
name Name of the Database Instance. string n/a yes
node_type Type of database instance you want to create. Updates to node_type will upgrade the Database Instance to the desired node_type without any interruption. Keep in mind that you cannot downgrade a Database Instance. string n/a yes
user_name Identifier for the first user of the database instance. Warning Changing the user_name will recreate the Database Instance. string n/a yes
additional_databases List of names of additional databases. list(string) [] no
engine Database Instance's engine version. Updates to engine will recreate the Database Instance. string "FerretDB-1" no
ha_enabled Enable or disable high availability for the database instance. bool false no
project_id ID of the project the instance is associated with. Ressource will be created in the project set at the provider level if null. string null no
region Region in which the instance should be created. Ressource will be created in the region set at the provider level if null. string null no
tags Tags associated with the server and dedicated ip address. list(string) [] no
telemetry_enabled Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service. More about the telemetry here. bool false no
user_password Password for the first user of the database instance. A random password will be generated if null. string null no
volume_size_in_gb Volume size (in GB) when volume_type is set to bssd. number null no
volume_type Type of volume where data are stored (bssd or lssd). string "lssd" no

Outputs

Name Description
instance_id ID of the Database Instance.
user_password Password generated if none were given.

Authors

Module is maintained with help from the community.

License

Mozilla Public License 2.0 Licensed. See LICENSE for full details.