|
8 | 8 | "default": [], |
9 | 9 | "pos": { |
10 | 10 | "filename": "variables.tf", |
11 | | - "line": 126 |
| 11 | + "line": 137 |
12 | 12 | } |
13 | 13 | }, |
14 | 14 | "auto_scaling": { |
|
22 | 22 | }, |
23 | 23 | "pos": { |
24 | 24 | "filename": "variables.tf", |
25 | | - "line": 153 |
| 25 | + "line": 164 |
26 | 26 | } |
27 | 27 | }, |
28 | 28 | "backup_crn": { |
|
43 | 43 | "description": "(Optional) The CRN of a key protect key, that you want to use for encrypting disk that holds deployment backups. If null, will use 'key_protect_key_crn' as encryption key. If 'key_protect_key_crn' is also null database is encrypted by using randomly generated keys.", |
44 | 44 | "pos": { |
45 | 45 | "filename": "variables.tf", |
46 | | - "line": 196 |
| 46 | + "line": 207 |
47 | 47 | } |
48 | 48 | }, |
49 | 49 | "cbr_rules": { |
|
60 | 60 | ], |
61 | 61 | "pos": { |
62 | 62 | "filename": "variables.tf", |
63 | | - "line": 207 |
| 63 | + "line": 218 |
64 | 64 | } |
65 | 65 | }, |
66 | 66 | "configuration": { |
|
72 | 72 | ], |
73 | 73 | "pos": { |
74 | 74 | "filename": "variables.tf", |
75 | | - "line": 135 |
| 75 | + "line": 146 |
76 | 76 | } |
77 | 77 | }, |
78 | 78 | "key_protect_key_crn": { |
|
84 | 84 | ], |
85 | 85 | "pos": { |
86 | 86 | "filename": "variables.tf", |
87 | | - "line": 190 |
| 87 | + "line": 201 |
88 | 88 | }, |
89 | 89 | "immutable": true |
90 | 90 | }, |
|
125 | 125 | "default": 3, |
126 | 126 | "pos": { |
127 | 127 | "filename": "variables.tf", |
128 | | - "line": 97 |
| 128 | + "line": 108 |
129 | 129 | } |
130 | 130 | }, |
131 | 131 | "name": { |
|
208 | 208 | "description": "Optional list of tags to be added to created resources", |
209 | 209 | "default": [], |
210 | 210 | "source": [ |
211 | | - "ibm_database.postgresql_db.tags" |
| 211 | + "ibm_database.postgresql_db.tags", |
| 212 | + "ibm_resource_key.service_credentials.tags" |
212 | 213 | ], |
213 | 214 | "pos": { |
214 | 215 | "filename": "variables.tf", |
215 | | - "line": 120 |
| 216 | + "line": 131 |
216 | 217 | }, |
| 218 | + "cloud_data_type": "tags", |
217 | 219 | "min_length": 1, |
218 | 220 | "max_length": 128, |
219 | 221 | "matches": "^[A-Za-z0-9:_ .-]+$", |
|
222 | 224 | "type": "TypeString" |
223 | 225 | } |
224 | 226 | }, |
| 227 | + "service_credential_names": { |
| 228 | + "name": "service_credential_names", |
| 229 | + "type": "map(string)", |
| 230 | + "description": "Map of name, role for service credentials that you want to create for the database", |
| 231 | + "default": {}, |
| 232 | + "source": [ |
| 233 | + "ibm_resource_key.service_credentials.for_each" |
| 234 | + ], |
| 235 | + "pos": { |
| 236 | + "filename": "variables.tf", |
| 237 | + "line": 95 |
| 238 | + } |
| 239 | + }, |
225 | 240 | "service_endpoints": { |
226 | 241 | "name": "service_endpoints", |
227 | 242 | "type": "string", |
|
232 | 247 | ], |
233 | 248 | "pos": { |
234 | 249 | "filename": "variables.tf", |
235 | | - "line": 110 |
| 250 | + "line": 121 |
236 | 251 | }, |
237 | 252 | "options": "public, private, public-and-private" |
238 | 253 | } |
|
257 | 272 | "line": 5 |
258 | 273 | } |
259 | 274 | }, |
| 275 | + "service_credentials_json": { |
| 276 | + "name": "service_credentials_json", |
| 277 | + "description": "Service credentials json map", |
| 278 | + "value": "local.service_credentials_json", |
| 279 | + "sensitive": true, |
| 280 | + "pos": { |
| 281 | + "filename": "outputs.tf", |
| 282 | + "line": 20 |
| 283 | + } |
| 284 | + }, |
| 285 | + "service_credentials_object": { |
| 286 | + "name": "service_credentials_object", |
| 287 | + "description": "Service credentials object", |
| 288 | + "value": "local.service_credentials_object", |
| 289 | + "sensitive": true, |
| 290 | + "pos": { |
| 291 | + "filename": "outputs.tf", |
| 292 | + "line": 26 |
| 293 | + } |
| 294 | + }, |
260 | 295 | "version": { |
261 | 296 | "name": "version", |
262 | 297 | "description": "Postgresql instance version", |
|
303 | 338 | "filename": "main.tf", |
304 | 339 | "line": 12 |
305 | 340 | } |
| 341 | + }, |
| 342 | + "ibm_resource_key.service_credentials": { |
| 343 | + "mode": "managed", |
| 344 | + "type": "ibm_resource_key", |
| 345 | + "name": "service_credentials", |
| 346 | + "attributes": { |
| 347 | + "for_each": "service_credential_names", |
| 348 | + "tags": "resource_tags" |
| 349 | + }, |
| 350 | + "provider": { |
| 351 | + "name": "ibm" |
| 352 | + }, |
| 353 | + "pos": { |
| 354 | + "filename": "main.tf", |
| 355 | + "line": 134 |
| 356 | + } |
306 | 357 | } |
307 | 358 | }, |
308 | 359 | "data_resources": {}, |
|
0 commit comments