How to use AWS S3 Bucket as website hosting with static website hosting feature and SSL support with AWS CloudFront

In this article, you want to learn how you can use AWS S3 Bucket as your static website hosting behind a CloudFront CDN to use HTTPS for your custom domain name.

CloudFront is required if you want to use SSL for your domain name, I will highly recommend always using SSL / HTTPS for a website to encryption the traffic between the client and the host.

Create a new S3 Bucket

First, we need to create an S3 Bucket, the bucket name should be your domain to make it easier to remember what the bucket is used for, and select the region you want to place your bucket inside.

Scroll down to “Block Public Access” settings, and be sure the “Block all public access” is unchecked, in this bucket we wish it should be public, and confirm the public access by checking the “Turning off block all public access” message below.

--

--

Paris Nakita Kejser
DevOps Engineer, Software Architect and Software Developering

DevOps Engineer, Software Architect, Software Developer, Data Scientist and identify me as a non-binary person.