diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 6a5c226..d0b3dba 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -103,7 +103,7 @@ module "vpc" { module "rds-pg" { source = "squareops/rds-postgresql/aws" - version = "2.0.0" + version = "2.0.1" name = local.name db_name = "test" multi_az = false diff --git a/modules/db-backup-restore/main.tf b/modules/db-backup-restore/main.tf index 472c2bc..a937d83 100644 --- a/modules/db-backup-restore/main.tf +++ b/modules/db-backup-restore/main.tf @@ -10,7 +10,7 @@ resource "helm_release" "postgresdb_backup" { count = var.postgresdb_backup_enabled ? 1 : 0 depends_on = [kubernetes_namespace.postgresdb] name = "postgresdb-backup" - chart = "../../modules/db-backup-restore/backup" + chart = "${path.module}/../../modules/db-backup-restore/backup" timeout = 600 namespace = var.namespace values = [ @@ -33,7 +33,7 @@ resource "helm_release" "postgresdb_restore" { count = var.postgresdb_restore_enabled ? 1 : 0 depends_on = [kubernetes_namespace.postgresdb] name = "postgresdb-restore" - chart = "../../modules/db-backup-restore/restore" + chart = "${path.module}/../../modules/db-backup-restore/restore" timeout = 600 namespace = var.namespace values = [ diff --git a/modules/db-backup-restore/variables.tf b/modules/db-backup-restore/variables.tf index 1a23f03..e92b4ed 100644 --- a/modules/db-backup-restore/variables.tf +++ b/modules/db-backup-restore/variables.tf @@ -94,21 +94,17 @@ variable "postgresdb_backup_config" { type = map(string) default = { bucket_uri = "" - s3_bucket_region = "" cron_for_full_backup = "" postgres_database_name = "" - # db_endpoint="" + } - description = "configuration options for MySQL database backups. It includes properties such as the S3 bucket URI, the S3 bucket region, and the cron expression for full backups." + description = "configuration options for MySQL database backups. It includes properties such as the S3 bucket URI, and the cron expression for full backups." } variable "postgresdb_restore_config" { type = any default = { bucket_uri = "" - file_name = "" - # s3_bucket_region = "" - DB_NAME = "" backup_file_name = "" } description = "Configuration options for restoring dump to the MySQL database." diff --git a/variables.tf b/variables.tf index db9bf05..490a105 100644 --- a/variables.tf +++ b/variables.tf @@ -347,12 +347,11 @@ variable "postgresdb_backup_config" { type = map(string) default = { bucket_uri = "" - # s3_bucket_region = "" cron_for_full_backup = "" postgres_database_name = "" - # db_endpoint="" + } - description = "configuration options for MySQL database backups. It includes properties such as the S3 bucket URI, the S3 bucket region, and the cron expression for full backups." + description = "configuration options for MySQL database backups. It includes properties such as the S3 bucket URI, and the cron expression for full backups." } variable "postgresdb_restore_config" { @@ -360,7 +359,6 @@ variable "postgresdb_restore_config" { default = { bucket_uri = "" file_name = "" - # s3_bucket_region = "" } description = "Configuration options for restoring dump to the MySQL database." }