Skip to content
Open
2 changes: 1 addition & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/db-backup-restore/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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 = [
Expand Down
8 changes: 2 additions & 6 deletions modules/db-backup-restore/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
6 changes: 2 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -347,20 +347,18 @@ 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 = ""
}
description = "Configuration options for restoring dump to the MySQL database."
}
Expand Down