Using S3 as a Web Server

In this lesson, you will learn how to use S3 as a web server by getting familiar with bucket endpoint​s and ​website endpoints.

There are two ways of using S3 as a web server:

  • bucket endpoints
  • website endpoints

Bucket endpoints and website endpoints #

A bucket endpoint allows direct access to S3 objects using HTTPS. AWS automatically activates this endpoint when you create an S3 bucket. For example, a file called test.txt in the bucket gojko will be available from https://gojko.s3.amazonaws.com/test.txt. Access to the bucket endpoint is controlled by IAM. When uploading a file to S3, you can make it publicly readable (as was done with test.txt), so anyone can access it using a web browser. You can also mark the file as private, ...