Setting up Hexo on AWS
I’ve got my hexo blog running on a very simple AWS setup that consists of:
- S3 - a bucket to store my static files (that I
hexo generate) - CloudFront - basically acts as a simple web server and lets me point to my S3 as an origin
- DNS - I already had a DNS name registered with GoDaddy (and sitting there unused).
- Cert - to get a valid cert, AWS needed me to set up a CNAME on GoDaddy to validate I controlled the domain.
This, of course, all needs to be automated. At work, I would use Terraform with Terraform Enterprise or Scalr, and set up a GitLab pipeline to build and deploy this. But since I’m using GitHub, and don’t have Scalr or TFE set up, I may need to experiment on a good way to do this.
Setting up Hexo on AWS
You need to set
install_url to use ShareThis. Please set it in _config.yml.