https://github.com/eficode-academy/s3blog
An example AWS S3 hosted blog as code, using terraform, docker, circleci, letsencrypt and cloudfront
https://github.com/eficode-academy/s3blog
Last synced: 2 months ago
JSON representation
An example AWS S3 hosted blog as code, using terraform, docker, circleci, letsencrypt and cloudfront
- Host: GitHub
- URL: https://github.com/eficode-academy/s3blog
- Owner: eficode-academy
- Created: 2017-09-13T08:47:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T10:49:08.000Z (over 7 years ago)
- Last Synced: 2025-01-11T21:23:07.930Z (4 months ago)
- Language: CSS
- Size: 13.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# s3blog
# Prerequisites
* Terraform
* Docker
* Git# Building the website
Build the website using the `./build-local.sh` command.This will use the docker image to build the jekyll site.
# Serving the website
Build the website using the `./serve-local.sh` command.
This will use the docker image to build the jekyll site.
# Creating the basic bucket infrastructure
The bucket and cloudfront infrastructure is defined in `aws.tf` terraform model.
terraform plan
terraform apply# Deploy the website with circleci
# Point your DNS to the bucket hosting
# Create certificates with letsencrypt
1. Run this to create the tokens
2. Add the tokens to the `_site` during the jekyll build
3. Push them to deploy
4. Finish the letsencrypt session
5. Store the certificates somewhere safe
6. Upload them to the AWS Certificate Manager (us-east-1)#