Code Monkey home page Code Monkey logo

blog's Introduction

Personal Site

Here's the code for my personal site/blog that I host at https://nicorossi.net

This project originated as an opportunity to experiment with the Hugo framework while also serving as a place to document my learnings throughout my software engineering journey.
To streamline deployment and stay updated with the latest changes, I've implemented a CI/CD pipeline. This setup automates the deployment process by integrating our GitHub repository with AWS CodePipeline. To avoid manual tinkering with the AWS console for site modifications, all essential resources are managed using Terraform Infrastructure as Code (IaC).

Site Code

Under the code directory you'll find the source code for the site itself and follows the standard Hugo project structure.

  • The site is built using the Doks theme.

Deployment

Under the deploy directory you'll find the Terraform code to manage the AWS resources needed to host the site.
Infrastructure creation is not yet inscluded in the pipeline, so you'll need to run terraform apply manually to create the resources.

terraform init
terraform plan -var-file=./vars/prod.tfvars
terraform apply -var-file=./vars/prod.tfvars

Deployment process for the site is automated using AWS CodePipeline and CodeBuild. The pipeline is triggered by changes to the main branch of this repository. Check out the buildspec file for more details.

Instead of the typical static website hosting setup on S3, I've opted for a CloudFront distribution with an S3 bucket as the origin. It's configured with Origin Access Control (OAC) to restrict access, eliminating the necessity to make the bucket public.

Pipeline and Automation

Pipeline and Automation diagram

System infrastructure diagram

blog's People

Contributors

nicrossi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.