Skip to content

Commit

Permalink
Enable the DB restore task
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Oct 10, 2024
1 parent f7aac82 commit 09aed26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/postgres-etl/load/load_task.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ module "load_task" {
# N.B. $DUMP_FILENAME is injected by the Step Function task
override_command = [
"sh", "-c",
"aws s3 cp s3://${var.s3_load_bucket_name}-${var.environment_name}/$LOAD_FILENAME /mnt/efs0/etl-load.sql.gz && gunzip /mnt/efs0/etl-load.sql.gz"
# && gunzip /mnt/efs0/etl-load.sql.gz && pg_restore --clean --if-exists -d $DB_CONNECTION_URL -j ${var.load_task_pgrestore_workers} --no-acl --no-owner /mnt/efs0/etl-load.sql
"aws s3 cp s3://${var.s3_load_bucket_name}-${var.environment_name}/$LOAD_FILENAME /mnt/efs0/etl-load.sql.gz && gunzip /mnt/efs0/etl-load.sql.gz && pg_restore --clean --if-exists -d $DB_CONNECTION_URL -j ${var.load_task_pgrestore_workers} --no-acl --no-owner /mnt/efs0/etl-load.sql"
]
port = null
secret_environment_variables = [
Expand Down

0 comments on commit 09aed26

Please sign in to comment.