This article is the second in a series on using AWS for static site hosting. In this article, we'll cover what S3 is and go through a step-by-step guide on how to set it up for hosting a static site.
What is S3?
Amazon S3 (short for Simple Storage Service) is used for, as the name implies, online file storage. Files that are uploaded to S3 are called objects and they are stored in discrete user-defined containers called buckets. S3 allows for a granular level of access control, permissions management, and importantly for our purposes, can be configured to provide an endpoint to serve a static site from the files contained in the bucket.
Setting up S3 for static site hosting
First off, you'll need to create an AWS account if you don't already have one and then navigate to S3 from the AWS console. From there, select the Create Bucket option, you'll be brought to a configuration screen.
Bucket configuration
1.) Under the General configuration tab you can leave the Bucket type as General purpose and give your bucket a name that will match the eventual domain/base URL of the static site.