Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/backup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion examples/fscloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion examples/pitr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down