Skip to content

Commit 5f1d86d

Browse files
authored
chore: comments in examples (#592)
1 parent 20757e3 commit 5f1d86d

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 redis instance pointing to the backup instance
1818
module "restored_icd_redis" {
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-redis/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}-redis-restored"
2225
redis_version = var.redis_version

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-redis/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
@@ -89,7 +89,10 @@ module "cbr_zone" {
8989
##############################################################################
9090

9191
module "icd_redis" {
92-
source = "../../"
92+
source = "../../"
93+
# remove the above line and uncomment the below 2 lines to consume the module from the registry
94+
# source = "terraform-ibm-modules/icd-redis/ibm"
95+
# version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
9396
resource_group_id = module.resource_group.resource_group_id
9497
redis_version = var.redis_version
9598
name = "${var.prefix}-redis"

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 "redis" {
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-redis/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}-redis"
6063
region = var.region

0 commit comments

Comments
 (0)