Skip to content

Commit 5a614ec

Browse files
added path module in the backup main.tf
1 parent cce7d35 commit 5a614ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/db-backup-restore/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resource "helm_release" "postgresdb_backup" {
1414
timeout = 600
1515
namespace = var.namespace
1616
values = [
17-
templatefile("../../helm/values/backup/values.yaml", {
17+
templatefile("${path.module}/../../helm/values/backup/values.yaml", {
1818
bucket_uri = var.postgresdb_backup_config.bucket_uri,
1919
postgres_database_name = var.postgresdb_backup_config.postgres_database_name,
2020
db_endpoint = var.postgresdb_backup_config.db_endpoint,
@@ -37,7 +37,7 @@ resource "helm_release" "postgresdb_restore" {
3737
timeout = 600
3838
namespace = var.namespace
3939
values = [
40-
templatefile("../../helm/values/restore/values.yaml", {
40+
templatefile("${path.module}/../../helm/values/restore/values.yaml", {
4141
bucket_uri = var.postgresdb_restore_config.bucket_uri,
4242
db_endpoint = var.postgresdb_restore_config.db_endpoint,
4343
db_password = var.postgresdb_restore_config.db_password,
@@ -46,4 +46,4 @@ resource "helm_release" "postgresdb_restore" {
4646
annotations = var.bucket_provider_type == "s3" ? "eks.amazonaws.com/role-arn: ${aws_iam_role.postgres_restore_role.arn}" : "iam.gke.io/gcp-service-account: ${var.service_account_restore}"
4747
})
4848
]
49-
}
49+
}

0 commit comments

Comments
 (0)