Skip to content
/ rapids3re Public

share files via s3 short-living presigned download URLs

License

Notifications You must be signed in to change notification settings

chtz/rapids3re

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rapids3re samples

Share files via s3 short-living presigned download URLs.

Codeship Status for chtz/PoormanS3Tool

Download rapids3re-0.0.1.jar (built by Codeship)

Pre condition: AWS IAM user with S3 ~full access.

Create bucket

java -jar target/rapids3re-0.0.1.jar --command createBucket --bucket $BUCKET --expirationInDays 1 --region $REGION --accessKey $ACCESS_KEY_ID --secretKey $SECRECT_KEY

Upload file

PRESIGNED_URL=$(java -jar target/rapids3re-0.0.1.jar --command putObject --file $FILE --bucket $BUCKET --expirationDurationMinutes 60 --region $REGION --accessKey $ACCESS_KEY_ID --secretKey $SECRECT_KEY)

Download file

curl $PRESIGNED_URL

Delete bucket

java -jar target/rapids3re-0.0.1.jar --command deleteBucket --bucket $BUCKET --region $REGION --accessKey $ACCESS_KEY_ID --secretKey $SECRECT_KEY

About

share files via s3 short-living presigned download URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages