Skip to content

Setting up S3 Buckets

You should end up creating two buckets, (,

Image S3 Buckets

Create your main bucket (

  • Create a bucket with site name (
  • Go to the 'Properties' tab
  • Select 'Static Website'

Image S3 Static Hosting

  • Select 'Use this bucket to host a website' and enter index.html for both Index document and Error document (for single page app)

Image S3 Static Index

  • Manually add an index.html file to the bucket for testing purposes
  • Make note of the Endpoint, we will be needing this later when setting up our CDN.
  • Go to the 'Permissions' tab
  • Select 'Bucket Policy'
  • Copy the following json replacing BUCKET_NAME with the name of the bucket (
        "Statement": [
                        "Principal": {
                        "Action": [
                        "Resource": [

Image S3 Static Index

Create Second Bucket for www subdomain

  • Create bucket with site name and subdomain (
  • Go to 'Properties' tab
  • Select 'Static Website'
  • Select 'Redirect requests' and choose 'http' for the protocol

Image S3 Static Index