diff --git a/modules/postgres-etl/extract/extract_task.tf b/modules/postgres-etl/extract/extract_task.tf index 8fafee50..02416500 100644 --- a/modules/postgres-etl/extract/extract_task.tf +++ b/modules/postgres-etl/extract/extract_task.tf @@ -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