Skip to content

Commit

Permalink
fix(mongodb_user): Change argument from a list to a set
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmn committed Jan 2, 2025
1 parent 835045c commit 6e1a858
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 123 deletions.
6 changes: 3 additions & 3 deletions docs/resources/mongodb_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subcategory: "MongoDB"

# Resource: ncloud_mongodb_users

Provides a MongoDB User list resources.
Provides a MongoDB User set resources.

~> **NOTE:** This resource only supports VPC environment.

Expand Down Expand Up @@ -35,7 +35,7 @@ resource "ncloud_mongodb" "mongodb" {
resource "ncloud_mongodb_users" "mongodb_users" {
id = ncloud_mongodb.mongodb.id
mongodb_user_list = [
mongodb_user_set = [
{
name = "testuser1",
password = "t123456789!",
Expand All @@ -57,7 +57,7 @@ resource "ncloud_mongodb_users" "mongodb_users" {
The following arguments are supported:

* `id` - (Required) The ID of the associated MongoDB Instance.
* `mongodb_user_list` - The list of users to add.
* `mongodb_user_set` - The set of users to add.
* `name` - (Required) MongoDB User ID. Allows only alphabets, numbers and underbar (_). Must start with an alphabetic character. Min: 4, Max: 16
* `password` - (Required) MongoDB User Password. At least one English alphabet, number and special character must be included. Certain special characters ( ` & + \ " ' / space ) cannot be used. Min: 8 , Max: 20
* `database_name` - (Required) MongoDB Database Name to add MongoDB User. Allows only alphabets, numbers and underbar (_). Must start with an alphabetic character. Min: 4 , Max: 30
Expand Down
Loading

0 comments on commit 6e1a858

Please sign in to comment.