AWS deployment
AWS deployment
The production documentation is available at https://plandl.org/.
Architecture
- S3 bucket
plandl-pages-164620743841-us-west-2inus-west-2, with encryption and all public access blocked. - CloudFront distribution
EKCEZ0KPAOBOPwith HTTPS redirect and a managed caching policy. It servesplandl.organdwww.plandl.orgwith an ACM certificate fromus-east-1; its default domain isd3eb034fkslao0.cloudfront.net. - DNS for
plandl.orgis hosted at Porkbun: anALIASrecord for the root domain and aCNAMEforwww, both pointing to the CloudFront domain, plus the ACM validationCNAMErecords. - Origin access control allows only this distribution to read the bucket.
- CloudFront Function
plandl-directory-indexmaps directory URLs to Hugo’sindex.htmldocuments.
S3 and CloudFront usage can incur AWS charges.
Publish
With Node.js, Hugo Extended, and AWS credentials configured:
npm run site:deploy:awsThe 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.