Skip to content

Commit c084337

Browse files
authored
Merge pull request #296 from rtoma/docs-fix
improve elasticsearch_opensearch_user example password + description
2 parents 0d31279 + 0799b87 commit c084337

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/resources/opensearch_user.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Provides an Elasticsearch OpenSearch security user. Please refer to the OpenSear
1616
# Create a user
1717
resource "elasticsearch_opensearch_user" "mapper" {
1818
username = "app-reader"
19-
password = "supersekret123!"
19+
password = "SuperSekret123!"
2020
description = "a reader role for our app"
2121
}
2222
```
@@ -58,6 +58,10 @@ The following arguments are supported:
5858
(Optional) A list of backend roles.
5959
* `password` -
6060
(Optional) The plain text password for the user, cannot be specified with `password_hash`.
61+
Some implementations may enforce a password policy. Invalid passwords may cause a non-descriptive
62+
HTTP 400 Bad Request error. For AWS Elasticsearch domains "password must be at least 8 characters
63+
long and contain at least one uppercase letter, one lowercase letter, one digit, and one special
64+
character".
6165
* `password_hash` -
6266
(Optional) The pre-hashed password for the user, cannot be specified with `password`.
6367
* `attributes` -

0 commit comments

Comments
 (0)