Download S3 Files
I can push some content to an S3 bucket with my credentials through S3cmd tool with s3cmd put contentfile S3://test_bucket/test_file
Question is, I am required to download the content from this bucket in other computers that don't have s3cmd installed on them, BUT they have wget installed.
Start S3 Browser and select the bucket that contains the files you want to download. Selet the bucket that contains the files you want to download. Select the file(s) and/or folder(s) which you need to download and click Download. Python – Download & Upload Files in Amazon S3 using Boto3. In this blog, we’re going to cover how you can use the Boto3 AWS SDK (software development kit) to download and upload objects to and from your Amazon S3 buckets.For those of you that aren’t familiar with Boto, it’s the primary Python SDK used to interact with Amazon’s APIs.
when I try to download some content from my bucket with wget I get this:
I have manually made this bucket public through the Amazon AWS web console.
Question is : How can I download content from an S3 bucket with wget? into a txt local file?
BecksBecks6 Answers
You should be able to access it from a url created as follows:
http://{bucket-name}.s3.amazonaws.com/<path-to-file>
Now, say your s3 file path is:
s3://test-bucket/test-folder/test-file.txt
You should be able to wget this file with following url:
http://test-bucket.s3.amazonaws.com/test-folder/test-file.txt


Got it ... If you upload a file in an S3 bucket with S3CMD with the --acl public flag then one shall be able to download the file from S3 with wget easily ...
Conclusion: In order to download with wget, first of one needs to upload the content in S3 with s3cmd put --acl public --guess-mime-type <test_file> s3://test_bucket/test_file
alternatively you can try:

notice the setacl flag above. THAT WILL set the file in s3 accessible publiclythen you can execute the wget http://s3.amazonaws.com/test_bucket/test_file
AWS cli has a 'presign' command that one can use to get a temporary public URL to a private s3 resource.
You can then use wget to download the resource using the presigned URL.
Stefan Profanterincase you do not have access to install aws client on ur Linux machine try below method.
- got to the bucket and click on download as button. copy the link generated.
execute command below
wget --no-check-certificate --no-proxy --user=username --ask-password -O 'download url'
Thanks
I had the same error and I solved it by adding a Security Groups Inbound rule:
Download S3 Bucket Folder
HTTPS type at port 443 to my IP address ( as I'm the only one accessing it ) for the subnet my instance was in.
Hope it helps anyone who forgot to include this