Skip to content
AWS deployment

AWS deployment

The production documentation is available at https://plandl.org/.

Architecture

  • S3 bucket plandl-pages-164620743841-us-west-2 in us-west-2, with encryption and all public access blocked.
  • CloudFront distribution EKCEZ0KPAOBOP with HTTPS redirect and a managed caching policy. It serves plandl.org and www.plandl.org with an ACM certificate from us-east-1; its default domain is d3eb034fkslao0.cloudfront.net.
  • DNS for plandl.org is hosted at Porkbun: an ALIAS record for the root domain and a CNAME for www, both pointing to the CloudFront domain, plus the ACM validation CNAME records.
  • Origin access control allows only this distribution to read the bucket.
  • CloudFront Function plandl-directory-index maps directory URLs to Hugo’s index.html documents.

S3 and CloudFront usage can incur AWS charges.

Publish

With Node.js, Hugo Extended, and AWS credentials configured:

npm run site:deploy:aws

The command builds with the CloudFront base URL, validates and regenerates the examples, synchronizes docs/public/ to S3, removes stale objects, and creates a /* CloudFront invalidation.

The defaults can be overridden with PLANDL_AWS_BUCKET, PLANDL_AWS_DISTRIBUTION, PLANDL_AWS_DOMAIN, and AWS_REGION.