Terraforming a Jekyll Deployment with CodeBuild, CodePipeline and CloudFront
As a good learning exercise to work with both IAC (Terraform) and static site deployments (Jekyll) I figured we would deploy this site with the above tools onto AWS and integrate them within CodePipeline to automatically detect when updates are pushed to the repository and rebuild and deploy the changes.
The code in the below linked repo details the entire Terraform deployment of this site, including the creation/configuration of the S3 buckets, CloudFront Deployment, Route53 Hosted Zone and CodePipeline.
Realistically all you need to do to use this terraform code for your own static site would be to change the variables located in the terraform.tfvars, Main.Tf and CloudFront.tf files to reflect your own deployment.
For more info or help with the linked code feel free to get in-touch with me via the contact me page on this site.
Full code can be found at the github link “HERE”