This repository is used to manage Document DB instances on scaleway using terraform.
- Setup the scaleway provider in your tf file.
- Include this module in your tf file. Refer to documentation.
module "my_cluster" {
source = "scaleway-terraform-modules/ddb/scaleway"
version = "0.0.1"
# insert required variables here
}
Name | Version |
---|---|
terraform | ~> 1 |
random | >= 3.4.3 |
scaleway | >= 2.29.0 |
Name | Type |
---|---|
random_password.this | resource |
scaleway_documentdb_database.additional | resource |
scaleway_documentdb_instance.main | resource |
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 |
Name | Description |
---|---|
instance_id | ID of the Database Instance. |
user_password | Password generated if none were given. |
Module is maintained with help from the community.
Mozilla Public License 2.0 Licensed. See LICENSE for full details.