AWS CLI get download S3 URL for private bucket from AWS CLI

amazon-s3, amazon-web-services, aws-cli

Solution

I googled around and decided write this script to help me to generate singed-url for S3.

https://github.com/gdbtek/aws-tools

Problem

I could upload a file to a private S3 bucket successfully using following command: `aws s3 cp "myfile.txt" "s3://myfolder/myfile.txt" --region=us-east-1 --output=json` I would like to issue a AWS CLI command to return me a temporary URL download for myfile.txt and does anyone know how to? I googled and look like I have to do some signing to get temporary URL such as: http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html

Original source