Skip to content

Commit 3af7e50

Browse files
authored
chore: comments in examples (#561)
1 parent 6ba7a17 commit 3af7e50

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

examples/backup-restore/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ data "ibm_database_backups" "backup_database" {
1616

1717
# New mongo db instance pointing to the backup instance
1818
module "restored_icd_mongodb" {
19-
source = "../.."
19+
source = "../.."
20+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
21+
# source = "terraform-ibm-modules/icd-mongodb/ibm/"
22+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
2023
resource_group_id = module.resource_group.resource_group_id
2124
name = "${var.prefix}-mongodb-restored"
2225
region = var.region

examples/basic/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ module "resource_group" {
1515
##############################################################################
1616

1717
module "database" {
18-
source = "../.."
18+
source = "../.."
19+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
20+
# source = "terraform-ibm-modules/icd-mongodb/ibm"
21+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
1922
resource_group_id = module.resource_group.resource_group_id
2023
name = "${var.prefix}-data-store"
2124
region = var.region

examples/complete/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ module "cbr_zone" {
104104
##############################################################################
105105

106106
module "icd_mongodb" {
107-
source = "../.."
107+
source = "../.."
108+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
109+
# source = "terraform-ibm-modules/icd-mongodb/ibm"
110+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
108111
resource_group_id = module.resource_group.resource_group_id
109112
name = "${var.prefix}-mongodb"
110113
mongodb_version = var.mongodb_version

examples/fscloud/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ module "cbr_zone" {
5454
##############################################################################
5555

5656
module "mongodb" {
57-
source = "../../modules/fscloud"
57+
source = "../../modules/fscloud"
58+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
59+
# source = "terraform-ibm-modules/icd-mongodb/ibm//modules/fscloud"
60+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
5861
resource_group_id = module.resource_group.resource_group_id
5962
name = "${var.prefix}-mongodb"
6063
region = var.region

0 commit comments

Comments
 (0)