Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to access S3 bucket through HTTP?

I have an EC2 instance in public subnet with default NACL and try to connect to S3 bucket through internet. My EC2 has a IAM role that allows access to this S3 bucket. S3 bucket has no bucket policies.

I want to connect to this S3 through HTTP, not HTTPS (for testing purposes). To do that, I changed outbound rule for security group to accept only 80 port.

When I try to access this S3, the request gets stuck.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

When I change outbound rule for security group to accept only 443 port, the connection works.

enter image description here

Anyone knows why port 80 is not working ? How can I access S3 bucket through HTTP?

Thanks

>Solution :

If I understand your question, you’ll want something like:

aws --endpoint-url http://s3.us-west-1.amazonaws.com s3 ls s3://your-bucket

Where the endpoint URL comes from the Amazon S3 endpoints on this page. All AWS cli commands default to HTTPS. You must specify the endpoint to switch to HTTP.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading