This explanatory tutorial will walk you through setting up a password-protected static site, hosted on Amazon’s cloud infrastructure, using Hashicorp’s Terraform tool. The contents of the site will be stored in an S3 bucket and served by a CloudFront distribution, using an SSL certificate. Access to the site will be restricted by HTTP basic authentication, implemented with CloudFront functions. Finally, DNS records will be created with Route 53, so that the site can be accessed via https://docs.<your-domain>. This walk-through assumes a general familiarity with the fundamental concepts of the web (e.g., HTTP, SSL, DNS, etc.), but it does not assume any prior experience with AWS or Terraform.