Skip to content

Commit ef97596

Browse files
shemauiamar7
andauthored
chore: comments in examples (#388)
Co-authored-by: Md Anam Raihan <[email protected]>
1 parent 5804ed5 commit ef97596

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 RabbitMQ db instance pointing to the backup instance
1818
module "restored_rabbitmq_db" {
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-rabbitmq/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}-rabbitmq-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-rabbitmq/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}-rabbitmq"
2124
region = var.region

examples/complete/main.tf

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

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

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

0 commit comments

Comments
 (0)