How to Deploy a Hugo Static Site with S3, CloudFront, and Route 53
Deploying a Hugo static site on AWS gives you a fast, scalable, and cost-effective setup. In this guide, we’ll walk through hosting your site on Amazon S3, distributing it globally via CloudFront, and pointing a custom domain using Route 53.
Prerequisites
Before starting, make sure you have:
- A built Hugo site (
hugocommand generates thepublic/folder) - An AWS account with appropriate IAM permissions
- A domain name registered in Route 53 (or transferred there)
- The AWS CLI installed and configured
Step 1: Build Your Hugo Site
Run the Hugo build command to generate your static files: