Skip to content

Commit b23202a

Browse files
manu-akwcyrilgdn
andauthored
Update AWS documentation (cyrilgdn#455)
To describe a typical setup with JSON secret instead of plaintext Co-authored-by: Milde, Manuel <[email protected]> Co-authored-by: Cyril Gaudin <[email protected]>
1 parent 5213579 commit b23202a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/index.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ data "aws_secretsmanager_secret_version" "postgres_password" {
134134
135135
provider "postgresql" {
136136
[...]
137-
password = data.aws_secretsmanager_secret_version.postgres_password.secret_string
137+
password = jsondecode(data.aws_secretsmanager_secret_version.postgres_password.secret_string)["password"]
138138
}
139139
```
140140

0 commit comments

Comments
 (0)