Skip to content

Commit cbb594e

Browse files
author
Aatreyee Mukherjee
committed
resolved comments
1 parent 48cae8d commit cbb594e

File tree

18 files changed

+45
-45
lines changed

18 files changed

+45
-45
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ You need the following permissions to run this module.
9090
| <a name="input_backup_crn"></a> [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no |
9191
| <a name="input_backup_encryption_key_crn"></a> [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key that you want to use for encrypting the disk that holds deployment backups. Applies only if `use_ibm_owned_encryption_key` is false and `use_same_kms_key_for_backups` is false. If no value is passed, and `use_same_kms_key_for_backups` is true, the value of `kms_key_crn` is used. Alternatively set `use_default_backup_encryption_key` to true to use the IBM Cloud Databases default encryption. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no |
9292
| <a name="input_cbr_rules"></a> [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of context-based restrictions rules to create. | <pre>list(object({<br/> description = string<br/> account_id = string<br/> rule_contexts = list(object({<br/> attributes = optional(list(object({<br/> name = string<br/> value = string<br/> }))) }))<br/> enforcement_mode = string<br/> tags = optional(list(object({<br/> name = string<br/> value = string<br/> })))<br/> operations = optional(list(object({<br/> api_types = list(object({<br/> api_type_id = string<br/> }))<br/> })))<br/> }))</pre> | `[]` | no |
93+
| <a name="input_cpu_count"></a> [cpu\_count](#input\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no |
94+
| <a name="input_disk_mb"></a> [disk\_mb](#input\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no |
9395
| <a name="input_kms_key_crn"></a> [kms\_key\_crn](#input\_kms\_key\_crn) | The CRN of a Key Protect or Hyper Protect Crypto Services encryption key to encrypt your data. Applies only if `use_ibm_owned_encryption_key` is false. By default this key is used for both deployment data and backups, but this behaviour can be altered using the `use_same_kms_key_for_backups` and `backup_encryption_key_crn` inputs. Bare in mind that backups encryption is only available in certain regions. See [Bring your own key for backups](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok) and [Using the HPCS Key for Backup encryption](https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs#use-hpcs-backups). | `string` | `null` | no |
94-
| <a name="input_member_cpu_count"></a> [member\_cpu\_count](#input\_member\_cpu\_count) | Allocated dedicated CPU per member. For shared CPU, set to 0. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `0` | no |
95-
| <a name="input_member_disk_mb"></a> [member\_disk\_mb](#input\_member\_disk\_mb) | The disk that is allocated per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `10240` | no |
9696
| <a name="input_member_host_flavor"></a> [member\_host\_flavor](#input\_member\_host\_flavor) | Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor). | `string` | `null` | no |
97-
| <a name="input_member_memory_mb"></a> [member\_memory\_mb](#input\_member\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no |
9897
| <a name="input_members"></a> [members](#input\_members) | The number of members that are allocated. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-resources-scaling) | `number` | `3` | no |
98+
| <a name="input_memory_mb"></a> [memory\_mb](#input\_memory\_mb) | Allocated memory per member. [Learn more](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-pricing#mongodb-scale-member) | `number` | `4096` | no |
9999
| <a name="input_mongodb_version"></a> [mongodb\_version](#input\_mongodb\_version) | The version of the MongoDB to provision. If no value passed, the current ICD preferred version is used. For our version policy, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy for more details | `string` | `null` | no |
100100
| <a name="input_name"></a> [name](#input\_name) | The name to give the MongoDB instance. | `string` | n/a | yes |
101101
| <a name="input_plan"></a> [plan](#input\_plan) | The name of the service plan that you choose for your MongoDB instance | `string` | `"standard"` | no |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ibmcloud_api_key": $VALIDATION_APIKEY,
33
"region": "us-south",
4-
"resource_tags": $TAGS,
4+
"tags": $TAGS,
55
"prefix": $PREFIX
66
}

examples/backup-restore/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module "restored_icd_mongodb" {
2222
region = var.region
2323
mongodb_version = var.mongodb_version
2424
access_tags = var.access_tags
25-
tags = var.resource_tags
25+
tags = var.tags
2626
member_host_flavor = "multitenant"
2727
backup_crn = data.ibm_database_backups.backup_database.backups[0].backup_id
2828
}

examples/backup-restore/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable "mongodb_version" {
3434
default = null
3535
}
3636

37-
variable "resource_tags" {
37+
variable "tags" {
3838
type = list(string)
3939
description = "Optional list of tags to be added to created resources"
4040
default = []

examples/basic/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "database" {
2121
region = var.region
2222
mongodb_version = var.mongodb_version
2323
access_tags = var.access_tags
24-
tags = var.resource_tags
24+
tags = var.tags
2525
service_endpoints = var.service_endpoints
2626
member_host_flavor = var.member_host_flavor
2727
service_credential_names = {

examples/basic/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable "mongodb_version" {
3434
default = null
3535
}
3636

37-
variable "resource_tags" {
37+
variable "tags" {
3838
type = list(string)
3939
description = "Optional list of tags to be added to created resources"
4040
default = []

examples/complete/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module "resource_group" {
3131
resource "ibm_is_vpc" "example_vpc" {
3232
name = "${var.prefix}-vpc"
3333
resource_group = module.resource_group.resource_group_id
34-
tags = var.resource_tags
34+
tags = var.tags
3535
}
3636

3737
resource "ibm_is_subnet" "testacc_subnet" {
@@ -59,7 +59,7 @@ module "key_protect_all_inclusive" {
5959
# Note: Database instance and Key Protect must be created on the same region.
6060
region = var.region
6161
key_protect_instance_name = "${var.prefix}-kp"
62-
resource_tags = var.resource_tags
62+
resource_tags = var.tags
6363
keys = [
6464
{
6565
key_ring_name = "icd"
@@ -113,7 +113,7 @@ module "icd_mongodb" {
113113
region = var.region
114114
plan = var.plan
115115
access_tags = var.access_tags
116-
tags = var.resource_tags
116+
tags = var.tags
117117
auto_scaling = var.auto_scaling
118118
# Example of how to use different KMS keys for data and backups
119119
use_ibm_owned_encryption_key = false
@@ -122,7 +122,7 @@ module "icd_mongodb" {
122122
backup_encryption_key_crn = module.key_protect_all_inclusive.keys["icd.${local.backups_key_name}"].crn
123123
service_credential_names = local.service_credential_names
124124
member_host_flavor = "multitenant"
125-
member_memory_mb = 4096
125+
memory_mb = 4096
126126
}
127127

128128
##############################################################################
@@ -139,7 +139,7 @@ module "secrets_manager" {
139139
secrets_manager_name = "${var.prefix}-secrets-manager"
140140
sm_service_plan = "trial"
141141
allowed_network = "public-and-private"
142-
sm_tags = var.resource_tags
142+
sm_tags = var.tags
143143
}
144144

145145
# Add a Secrets Group to the secret manager instance

examples/complete/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ variable "resource_group" {
2323
default = null
2424
}
2525

26-
variable "resource_tags" {
26+
variable "tags" {
2727
type = list(string)
2828
description = "Optional list of tags to be added to created resources"
2929
default = []

examples/fscloud/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ data "ibm_iam_account_settings" "iam_account_settings" {
2323
resource "ibm_is_vpc" "example_vpc" {
2424
name = "${var.prefix}-vpc"
2525
resource_group = module.resource_group.resource_group_id
26-
tags = var.resource_tags
26+
tags = var.tags
2727
}
2828

2929
resource "ibm_is_subnet" "testacc_subnet" {
@@ -58,7 +58,7 @@ module "mongodb" {
5858
resource_group_id = module.resource_group.resource_group_id
5959
name = "${var.prefix}-mongodb"
6060
region = var.region
61-
tags = var.resource_tags
61+
tags = var.tags
6262
access_tags = var.access_tags
6363
kms_key_crn = var.kms_key_crn
6464
backup_encryption_key_crn = var.backup_encryption_key_crn

examples/fscloud/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "resource_group" {
2222
default = null
2323
}
2424

25-
variable "resource_tags" {
25+
variable "tags" {
2626
type = list(string)
2727
description = "Optional list of tags to be added to created resources"
2828
default = []

0 commit comments

Comments
 (0)