Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/mongodb_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The following arguments are supported:
- `version` - (Optional) MongoDB® version of the instance.
- `node_type` - (Required) The type of MongoDB® intance to create.
- `user_name` - (Optional) Name of the user created when the intance is created.
- `password` - (Optional) Password of the user.
- `password` - (Optional) Password of the user. The password must contain at least 1 digit, 1 uppercase letter, 1 lowercase letter, and 1 special character. For secure password generation, consider using the `random_password` resource with appropriate parameters.
- `name` - (Optional) Name of the MongoDB® instance.
- `tags` - (Optional) List of tags attached to the MongoDB® instance.
- `volume_type` - (Optional) Volume type of the instance.
Expand Down
29 changes: 28 additions & 1 deletion docs/resources/rdb_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ resource "scaleway_rdb_instance" "main" {
}
```

### Example with Secure Random Password

```terraform
resource "random_password" "rdb_password" {
length = 24
special = true
upper = true
lower = true
numeric = true
min_upper = 1
min_lower = 1
min_numeric = 1
min_special = 1
}

resource "scaleway_rdb_instance" "main" {
name = "test-rdb"
node_type = "DB-DEV-S"
engine = "PostgreSQL-15"
is_ha_cluster = true
disable_backup = true
user_name = "my_initial_user"
password = random_password.rdb_password.result
encryption_at_rest = true
}
```

### Example Block Storage Low Latency

```terraform
Expand Down Expand Up @@ -153,7 +180,7 @@ interruption.

~> **Important** Updates to `user_name` will recreate the Database Instance.

- `password` - (Optional) Password for the first user of the Database Instance.
- `password` - (Optional) Password for the first user of the Database Instance. The password must contain at least 1 digit, 1 uppercase letter, 1 lowercase letter, and 1 special character. For secure password generation, consider using the `random_password` resource with appropriate parameters.

- `is_ha_cluster` - (Optional) Enable or disable high availability for the Database Instance.

Expand Down
13 changes: 10 additions & 3 deletions docs/resources/rdb_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ resource "scaleway_rdb_instance" "main" {
}

resource "random_password" "db_password" {
length = 16
special = true
length = 20
special = true
upper = true
lower = true
numeric = true
min_upper = 1
min_lower = 1
min_numeric = 1
min_special = 1
}

resource "scaleway_rdb_user" "db_admin" {
Expand All @@ -48,7 +55,7 @@ The following arguments are supported:

~> **Important:** Updates to `name` will recreate the database user.

- `password` - (Required) database user password.
- `password` - (Required) database user password. The password must contain at least 1 digit, 1 uppercase letter, 1 lowercase letter, and 1 special character. For secure password generation, consider using the `random_password` resource with appropriate parameters.

- `is_admin` - (Optional) Grant admin permissions to the database user.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/redis_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ you cannot downgrade a Redis™ cluster.

- `user_name` - (Required) Identifier for the first user of the Redis™ cluster.

- `password` - (Required) Password for the first user of the Redis™ cluster.
- `password` - (Required) Password for the first user of the Redis™ cluster. The password must contain at least 1 digit, 1 uppercase letter, 1 lowercase letter, and 1 special character. For secure password generation, consider using the `random_password` resource with appropriate parameters.

- `name` - (Optional) The name of the Redis™ cluster.

Expand Down
Loading