Combining Amazon Web Services S3 + Cloudfront provides an enterprise-grade CDN & hosting solution for Gatsby sites. To deploy a Gatsby site to S3 + Cloudfront:
- Create an S3 bucket to house the files & configure permissions
- Enable website hosting on the bucket and configure it to point to index.html
- Create an IAM User to authorize uploads & store the access key
- Enable Cloudfront distribution on the S3 bucket
- Configure your Gatsby site to push built files into the S3 bucket