Deploying to Cloud Storage with Hugo

Hugo has built-in support for deploying your site to cloud storage provided by Amazon S3, Google Compute Storage, and Microsoft Azure. To use these services, you need to configure Hugo with the information it needs about where to place the files.

Let’s configure Hugo to deploy to Amazon S3.

Before you start, you should be aware that this method will result in a site that doesn’t have a custom domain and won’t be secured with a TLS certificate. However, you can combine this approach with Amazon’s Cloudfront[42] and Route 53[43] services to configure TLS certificates and a domain name for your site. As such, this approach is targeted toward people who have some experience hosting static content on S3.

To use ...

Get Build Websites with Hugo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.