Commit e37408d
Managed Admin Password for DocumentDb (#124)
* feat: add support for managed master credentials
Added one additional nullable variable that will allow users to manage
their master credentials using AWS Secrets Manager. This is a native
feature of the core resource.
* chore: update `manage_master_user_password` documentation
Updated the documentation to be a bit more clear and aligned with
the actual documentation.
* fix: ssm logic corrected
Was originally set to check whether `manage_master_user_password` is
null, which is not the correct test.
* (feat) Update create_password logic
* fix: Set master_password output to null when password is managed
* feat: Refactor conditional expressions
* chore: fix documentation
Co-authored-by: Copilot <[email protected]>
* fix: Update faulty conditional
Co-authored-by: Ben <[email protected]>
* Revert "fix: Update faulty conditional"
This reverts commit 876b50b.
* fix: correct logic for manage_master_user_password variable
* fix: Remove validation block
* refactor: master password handling
- Simplify logic for managing master password and Secrets Manager - Set
default for manage_master_user_password to false - Clarify variable
description and output behavior
* refactor: improve master password management logic and validation in DocumentDB cluster
* Update variables to be proper order - forget if TF short ciruits at this low version
* fix: update SSM parameter store condition to handle null master password values
* update outputs.tf
---------
Co-authored-by: Jan Costandius <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 2feab76 commit e37408d
3 files changed
+25
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | | - | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | | - | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
239 | 249 | | |
240 | 250 | | |
241 | 251 | | |
| 252 | + | |
0 commit comments