Skip to content

Commit

Permalink
Add a debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Oct 16, 2024
1 parent 44021c4 commit 64d8b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/postgres-etl/extract/extract_task.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module "extract_task" {
# N.B. $DUMP_FILENAME is injected by the Step Function task
override_command = [
"sh", "-c",
"apk upgrade && rm -rf $MOUNT_POINT/$DUMP_FILENAME && pg_dump -d $DB_CONNECTION_URL -Fd -j ${var.extract_task_pgrestore_workers} --no-acl --no-owner -f $MOUNT_POINT/$DUMP_FILENAME && tar -C $MOUNT_POINT -cf $DUMP_FILENAME.tar $DUMP_FILENAME && aws s3 cp --quiet $MOUNT_POINT/$DUMP_FILENAME.tar s3://${var.s3_extract_bucket_name}-${var.environment_name}/$DUMP_FILENAME-$(date +%Y-%m-%d-%H-%M-%S).tar && echo \"$DUMP_FILENAME successfully uploaded to S3\""
"apk upgrade && rm -rf $MOUNT_POINT/$DUMP_FILENAME && pg_dump -d $DB_CONNECTION_URL -Fd -j ${var.extract_task_pgrestore_workers} --no-acl --no-owner -f $MOUNT_POINT/$DUMP_FILENAME && echo \"Database successfully dumped\" && tar -C $MOUNT_POINT -cf $DUMP_FILENAME.tar $DUMP_FILENAME && aws s3 cp --quiet $MOUNT_POINT/$DUMP_FILENAME.tar s3://${var.s3_extract_bucket_name}-${var.environment_name}/$DUMP_FILENAME-$(date +%Y-%m-%d-%H-%M-%S).tar && echo \"$DUMP_FILENAME successfully uploaded to S3\""
]
port = null
# ECS Execution role will need access to these
Expand Down

0 comments on commit 64d8b9b

Please sign in to comment.