- Tab Title
- Tab Title
- Tab Title
To upload Datasets from Amazon S3 to FlexAI, you first need to create a Storage Provider Connection that holds the necessary information to connect to your Amazon S3 bucket.You will find this entry from the AWS Security Blog useful: How to quickly find and update your access keys […].You will need the following:
- Your Amazon S3 Secret Access Key
- Your Amazon S3 Access Key ID
- The Amazon S3 region
- The endpoint URL associated with your Amazon S3 region
-
Store Your Credentials using the FlexAI Secret Manager
Store your Amazon S3 Secret Access Key
To store your Amazon S3 Secret Access Key as an FlexAI Secret, run the following command:
You will be prompted to enter your Amazon S3 Secret Access Key (of course you can paste it in!). Once you have entered it, hit Enter, and the Secret
s3-secret-access-keywill be created. -
Create the Storage Provider Connection
Create the Storage Provider Connection
With the Amazon S3 Secret Access Key stored as an FlexAI Secret, you can now create a Storage Provider Connection for Amazon S3 using the
flexai storagecommand by following the example shown by the command string below:Note that the value of
A Remote Storage Connection for an Amazon S3 bucket located in the--endpointwill depend on the region where your Amazon S3 bucket is located. You can find the official list of Amazon S3 endpoints here.eu-west-1region with the endpoints3.eu-west-1.amazonaws.comand an Access Key IDAKIAIOSFODIN7AAF89GUwould look like this: -
Upload Datasets from Amazon S3 to FlexAI
Upload Datasets from Amazon S3 to FlexAI
Now you can use your newly created
aws-storage-conn-euStorage Provider Connection to upload Datasets from an Amazon S3 bucket directly to FlexAI by using theflexai dataset pushcommand as shown by the command string below:For instance, creating an FlexAI Dataset nameds3-dataset-audiofrom an Amazon S3 bucket nameddata-setswith the object keyfiles/wav-filesusing theaws-storage-conn-euStorage Provider Connection would look like this: -
Monitor the Dataset Upload Progress
Monitor the Dataset Upload Progress
The progress of the Dataset upload can be monitored by using the
inspectsubcommand fromflexai dataset:Which for our example would look like this: