Sagemaker integration with quicksight

I have created quicksight visuals using postgresql data however i need to integrate with Sagemaker to show some predictions, how can i upload the postgresql data into S3 to train-test-split and to pass it through sagemaker model

While this is not the question specific to QuickSight, but you refer following to export data from postgresql to S3