I want to write a bash script to generate aws pre-signed url to download file stored on s3 bucket.
I generate presign url using browser and use it to download. I need to automate the process to eliminate the need of manually generating link every time.
2
Answers
We can use awscli to generate the presign URL for downloading purposes. I am attaching a sample snippet which I use to generate the pre-signed URL and download it
With the AWS CLI:
aws s3 presign <S3Uri>
Source: https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html