Uploading data into SWB
Users are able to upload data they have stored locally into SWB using 2 methods.
Last updated
Users are able to upload data they have stored locally into SWB using 2 methods.
Last updated
✅ Easy, point and click interface, especially if you are already planning on using SageMaker for analysis
❌ Limited file sizes can be uploaded using this method (<30GB)
Follow the instructions to create and connect to a SageMaker workspace linked to a study that you have read/write access to.
Navigate to the location where you would like to upload your files by clicking 'studies' and then the name of your linked study. Here, I am uploading data to the simran-NOWINDOWS study.
Click Upload and use the file explorer to select the file you want to upload, then click Open.
Confirm your upload by clicking Upload.
✅ Upload any size file
Once your Linux workspace is listed as Available, click Connections. If this is the first time you are creating a linux workspace you will need to download your SSH key and save it to your computer when prompted.
Keep your SWB browser window handy and open a Terminal window (Mac). Using the command line in the Terminal window, navigate to the directory where your SSH Key is saved.
Change the permissions of the key file to allow access by running the following command in the terminal:
YOUR-KEY.pem should be the name of your SSH key (in the red box above).
FILE-TO-UPLOAD should be the name and full file path of the file you want to upload.
EC2-ADDRESS can be found in the next step, when you click "Use this SSH Key" in SWB.
YOUR-STUDY-FOLDER should be the name of the study you linked to your workspace.
Next, modify the following highlighted sections in the command below in a text editor.
In the SWB browser, click "Use this SSH Key". Under the SSH connections section, copy the public host address and paste it the <EC2ADDRESS> section of the secure copy command.
The secure copy command is now ready to use. If the 60 second countdown time has lapsed before you ran the command, click "Use this SSH Key" to restart the time and paste your complete secure copy command in the terminal window and hit enter.
You only have 60 seconds to run the command and connect to your workspace. In order to successfully transfer files, you must establish a connection during these 60 seconds. If the time has elapsed, just click "Use this SSH Key" again to restart the countdown.
A successful copy will look like the image below. Your data is now in your S3 subfolder (linked study), accessible to any workspace associated with your subfolder.
Follow the instructions to create a Linux workspace linked to a study that you have read/write access to.
For more information on changing your CIDR block, see the FAQ page .