diff --git a/examples/backup/main.tf b/examples/backup/main.tf index 331e34c6..bfdf1588 100644 --- a/examples/backup/main.tf +++ b/examples/backup/main.tf @@ -15,7 +15,10 @@ data "ibm_database_backups" "backup_database" { # New mysql instance pointing to the backup instance module "restored_mysql_db" { - source = "../.." + source = "../.." + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mysql-restored" mysql_version = var.mysql_version diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 3a704f6a..3d2cce0d 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -15,7 +15,10 @@ module "resource_group" { ############################################################################## module "database" { - source = "../.." + source = "../.." + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mysql" mysql_version = var.mysql_version @@ -51,8 +54,11 @@ resource "time_sleep" "wait_time" { ############################################################################## module "read_only_replica_mysql_db" { - count = var.read_only_replicas_count - source = "../.." + count = var.read_only_replicas_count + source = "../.." + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-read-only-replica-${count.index}" region = var.region diff --git a/examples/complete/main.tf b/examples/complete/main.tf index f98c5369..5c25ebe4 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -102,7 +102,10 @@ module "cbr_zone" { ############################################################################## module "mysql_db" { - source = "../../" + source = "../../" + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mysql" region = var.region diff --git a/examples/fscloud/main.tf b/examples/fscloud/main.tf index 41a75120..ee6f5938 100644 --- a/examples/fscloud/main.tf +++ b/examples/fscloud/main.tf @@ -54,7 +54,10 @@ module "cbr_zone" { ############################################################################## module "mysql" { - source = "../../modules/fscloud" + source = "../../modules/fscloud" + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm//modules/fscloud" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mysql" region = var.region diff --git a/examples/pitr/main.tf b/examples/pitr/main.tf index f46796ad..fdf56250 100644 --- a/examples/pitr/main.tf +++ b/examples/pitr/main.tf @@ -12,7 +12,10 @@ module "resource_group" { # New ICD mysql database instance pointing to a PITR time module "mysql_db_pitr" { - source = "../.." + source = "../.." + # remove the above line and uncomment the below 2 lines to consume the module from the registry + # source = "terraform-ibm-modules/icd-mysql/ibm" + # version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release resource_group_id = module.resource_group.resource_group_id name = "${var.prefix}-mysql-pitr" region = var.region