|
1 | 1 | { |
2 | 2 | "path": ".", |
3 | 3 | "variables": { |
| 4 | + "admin_pass": { |
| 5 | + "name": "admin_pass", |
| 6 | + "type": "string", |
| 7 | + "description": "The password for the database administrator. If the admin password is null then the admin user ID cannot be accessed. More users can be specified in a user block. The admin password must be in the range of 10-32 characters.", |
| 8 | + "sensitive": true, |
| 9 | + "source": [ |
| 10 | + "ibm_database.mongodb.adminpassword" |
| 11 | + ], |
| 12 | + "pos": { |
| 13 | + "filename": "variables.tf", |
| 14 | + "line": 122 |
| 15 | + } |
| 16 | + }, |
4 | 17 | "auto_scaling": { |
5 | 18 | "name": "auto_scaling", |
6 | 19 | "type": "object({\n disk = object({\n capacity_enabled = optional(bool, false)\n free_space_less_than_percent = optional(number, 10)\n io_above_percent = optional(number, 90)\n io_enabled = optional(bool, false)\n io_over_period = optional(string, \"15m\")\n rate_increase_percent = optional(number, 10)\n rate_limit_mb_per_member = optional(number, 3670016)\n rate_period_seconds = optional(number, 900)\n rate_units = optional(string, \"mb\")\n })\n memory = object({\n io_above_percent = optional(number, 90)\n io_enabled = optional(bool, false)\n io_over_period = optional(string, \"15m\")\n rate_increase_percent = optional(number, 10)\n rate_limit_mb_per_member = optional(number, 114688)\n rate_period_seconds = optional(number, 900)\n rate_units = optional(string, \"mb\")\n })\n })", |
7 | 20 | "description": "Optional rules to allow the database to increase resources in response to usage. Only a single autoscaling block is allowed. Make sure you understand the effects of autoscaling, especially for production environments. See https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-autoscaling\u0026interface=cli#autoscaling-considerations in the IBM Cloud Docs.", |
8 | 21 | "pos": { |
9 | 22 | "filename": "variables.tf", |
10 | | - "line": 122 |
| 23 | + "line": 141 |
11 | 24 | } |
12 | 25 | }, |
13 | 26 | "backup_encryption_key_crn": { |
|
16 | 29 | "description": "The CRN of a Key Protect key that you want to use for encrypting the disk that holds deployment backups. Only used if var.kms_encryption_enabled is set to true. BYOK for backups is available only in US regions us-south and us-east, and in eu-de. Only keys in the us-south and eu-de are durable to region failures. To ensure that your backups are available even if a region failure occurs, use a key from us-south or eu-de. Hyper Protect Crypto Services for IBM Cloud Databases backups is not currently supported. If no value is passed here, the value passed for the 'kms_key_crn' variable is used. And if a HPCS value is passed for var.kms_key_crn, the database backup encryption uses the default encryption keys.", |
17 | 30 | "pos": { |
18 | 31 | "filename": "variables.tf", |
19 | | - "line": 173 |
| 32 | + "line": 192 |
20 | 33 | } |
21 | 34 | }, |
22 | 35 | "cbr_rules": { |
|
33 | 46 | ], |
34 | 47 | "pos": { |
35 | 48 | "filename": "variables.tf", |
36 | | - "line": 199 |
| 49 | + "line": 218 |
37 | 50 | } |
38 | 51 | }, |
39 | 52 | "configuration": { |
|
73 | 86 | "type": "string", |
74 | 87 | "description": "Specify whether you want to enable the public, private, or both service endpoints. Supported values are 'public', 'private', or 'public-and-private'.", |
75 | 88 | "default": "private", |
| 89 | + "required": true, |
76 | 90 | "source": [ |
| 91 | + "data.ibm_database_connection.database_connection.endpoint_type", |
77 | 92 | "ibm_database.mongodb.service_endpoints" |
78 | 93 | ], |
79 | 94 | "pos": { |
|
91 | 106 | ], |
92 | 107 | "pos": { |
93 | 108 | "filename": "variables.tf", |
94 | | - "line": 189 |
| 109 | + "line": 208 |
95 | 110 | }, |
96 | 111 | "immutable": true, |
97 | 112 | "computed": true |
|
119 | 134 | ], |
120 | 135 | "pos": { |
121 | 136 | "filename": "variables.tf", |
122 | | - "line": 153 |
| 137 | + "line": 172 |
123 | 138 | } |
124 | 139 | }, |
125 | 140 | "kms_key_crn": { |
|
131 | 146 | ], |
132 | 147 | "pos": { |
133 | 148 | "filename": "variables.tf", |
134 | | - "line": 159 |
| 149 | + "line": 178 |
135 | 150 | }, |
136 | 151 | "immutable": true |
137 | 152 | }, |
|
253 | 268 | "default": false, |
254 | 269 | "pos": { |
255 | 270 | "filename": "variables.tf", |
256 | | - "line": 183 |
| 271 | + "line": 202 |
257 | 272 | } |
258 | 273 | }, |
259 | 274 | "tags": { |
|
269 | 284 | "filename": "variables.tf", |
270 | 285 | "line": 66 |
271 | 286 | } |
| 287 | + }, |
| 288 | + "users": { |
| 289 | + "name": "users", |
| 290 | + "type": "list(object({\n name = string\n password = string # pragma: allowlist secret\n type = string # \"type\" is required to generate the connection string for the outputs.\n role = optional(string)\n }))", |
| 291 | + "description": "A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters. Be warned that in most case using IAM service credentials (via the var.service_credential_names) is sufficient to control access to the MongoDB instance. This blocks creates native MongoDB database users, more info on that can be found here https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-user-management\u0026interface=ui", |
| 292 | + "default": [], |
| 293 | + "sensitive": true, |
| 294 | + "source": [ |
| 295 | + "data.ibm_database_connection.database_connection.count", |
| 296 | + "data.ibm_database_connection.database_connection.user_id", |
| 297 | + "data.ibm_database_connection.database_connection.user_type" |
| 298 | + ], |
| 299 | + "pos": { |
| 300 | + "filename": "variables.tf", |
| 301 | + "line": 129 |
| 302 | + } |
272 | 303 | } |
273 | 304 | }, |
274 | 305 | "outputs": { |
|
300 | 331 | }, |
301 | 332 | "type": "TypeString" |
302 | 333 | }, |
| 334 | + "hostname": { |
| 335 | + "name": "hostname", |
| 336 | + "description": "Database hostname. Only contains value when var.service_credential_names or var.users are set.", |
| 337 | + "pos": { |
| 338 | + "filename": "outputs.tf", |
| 339 | + "line": 42 |
| 340 | + } |
| 341 | + }, |
303 | 342 | "id": { |
304 | 343 | "name": "id", |
305 | 344 | "description": "MongoDB instance ID", |
|
309 | 348 | "line": 5 |
310 | 349 | } |
311 | 350 | }, |
| 351 | + "port": { |
| 352 | + "name": "port", |
| 353 | + "description": "Database port. Only contains value when var.service_credential_names or var.users are set.", |
| 354 | + "pos": { |
| 355 | + "filename": "outputs.tf", |
| 356 | + "line": 47 |
| 357 | + } |
| 358 | + }, |
312 | 359 | "service_credentials_json": { |
313 | 360 | "name": "service_credentials_json", |
314 | 361 | "description": "Service credentials json map", |
|
357 | 404 | "type": "ibm_database", |
358 | 405 | "name": "mongodb", |
359 | 406 | "attributes": { |
| 407 | + "adminpassword": "admin_pass", |
360 | 408 | "configuration": "configuration", |
361 | 409 | "key_protect_key": "kms_key_crn", |
362 | 410 | "location": "region", |
|
406 | 454 | }, |
407 | 455 | "pos": { |
408 | 456 | "filename": "main.tf", |
409 | | - "line": 155 |
| 457 | + "line": 166 |
| 458 | + } |
| 459 | + } |
| 460 | + }, |
| 461 | + "data_resources": { |
| 462 | + "data.ibm_database_connection.database_connection": { |
| 463 | + "mode": "data", |
| 464 | + "type": "ibm_database_connection", |
| 465 | + "name": "database_connection", |
| 466 | + "attributes": { |
| 467 | + "count": "users", |
| 468 | + "endpoint_type": "endpoints", |
| 469 | + "user_id": "users", |
| 470 | + "user_type": "users" |
| 471 | + }, |
| 472 | + "provider": { |
| 473 | + "name": "ibm" |
| 474 | + }, |
| 475 | + "pos": { |
| 476 | + "filename": "main.tf", |
| 477 | + "line": 195 |
410 | 478 | } |
411 | 479 | } |
412 | 480 | }, |
413 | | - "data_resources": {}, |
414 | 481 | "module_calls": { |
415 | 482 | "cbr_rule": { |
416 | 483 | "name": "cbr_rule", |
|
485 | 552 | }, |
486 | 553 | "pos": { |
487 | 554 | "filename": "main.tf", |
488 | | - "line": 116 |
| 555 | + "line": 127 |
489 | 556 | } |
490 | 557 | } |
491 | 558 | } |
|
0 commit comments