chtz / rapids3re

share files via s3 short-living presigned download URLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Java 100.0%