davidmerrick / david-merrick.com

Personal website. Built with Jekyll. https://www.david-merrick.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My personal website, built with Jekyll.

https://www.david-merrick.com

Running locally

Run docker-compose up Visit http://localhost:4000

Infrastructure

This site has CloudFormation templates for deployment to AWS. Its infrastructure consists of:

  • S3 bucket
  • Route53 Domain
  • CloudFront distribution for edge caching
  • Lambda@Edge to redirect non-www requests to the www subdomain

To create the AWS resources from the template, do the following.

Package the templates: aws cloudformation package --template-file etc/root.yaml --output-template packaged.yaml --s3-bucket merrick-cf-templates-east

Deploy the templates:

Note: Make sure to customize the parameter values

aws cloudformation deploy --template-file packaged.yaml --capabilities CAPABILITY_IAM --parameter-overrides Referer=myReferer --stack-name davidmerrickdotcom

Gotchas

  • Lambda@Edge doesn't allow env vars, so gotta hardcode that domain name.
  • Lambda@Edge has a 5-second limit on timeouts.

About

Personal website. Built with Jekyll. https://www.david-merrick.com

License:MIT License


Languages

Language:HTML 91.5%Language:Ruby 4.7%Language:SCSS 3.7%