How can I share data publicly?

Last Updated: Sep 01, 2017 06:04AM PDT

Sharing part of the data stored in NooBaa is a common use case. 
 
In AWS S3 there is a sharing option called pre signed URL.
 
 
NooBaa supports this option out of the box.
 
Generating this shared URL is easy. It's possible even via command line. 

Below you can find a step by step tutorial to share data via AWS CLI.
 
One time setup
 
1. Install standard AWS CLI from here https://aws.amazon.com/cli
2. edit the credentials file and add the following text. Replace the magenta colored text with your own information.

[noobaa]

aws_access_key_id = <replace with your own key>

aws_secret_access_key = <replace with your own secret>

Sign command

aws s3 presign --profile=noobaa --endpoint-url=http://<my NooBaa DNA name> <bucket name>/<file name> --expires-in 36000

Example with NooBaa demo system

aws s3 presign --profile=noobaa --endpoint-url=http://noobaademo.com movies/PeopleAreAwesome.mp4 --expires-in 36000

The result - Shared public file with this link, valid for 36000 seconds (10 hours)

http://noobaademo.com/movies/PeopleAreAwesome.mp4?AWSAccessKeyId=wLEbxj8LVTFDnK8sShib&Expires=1504305155&Signature=WKshQeBfzIMNZP4fBWIt%2BPhGfVA%3D

 

Did you find this article helpful?
195e69fe2c7a9be6b2b2aa6b87f970548@noobaa.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete