Personal Blog

Build a Serverless CI/CD pipeline on AWS with Fargate, CodePipeline and Terraform

This blog provides an example for deploying a CI/CD pipeline on AWS utilising the serverless container platform Fargate and the fully managed CodePipeline service. We’ll also use Terraform to automate the process for building the entire AWS environment, as shown in the below diagram. Specifically, we’ll be creating the following AWS resources: 1x demo VPC including public/private subnets, NAT gateway and security groups etc 1x ALB for providing LB services to a target group of 2x Fargate container tasks 1x ECS cluster with a Fargate service definition (running our demo app) 1x CodePipeline definition, which builds the demo app from GitHub Repo (with a webhook trigger) and deploys it to the same Fargate service 1x ECR repository for hosting pipeline build images 2x S3 Buckets as build & artifact cache References – for this demo, I’m using these Terraform modules found on GitHub: ...

June 20, 2020 · 6 min · route179

Cloud Native DevOps on GCP Series Ep3 – Use Terraform to launch a Serverless CI/CD pipeline with Cloud Run, GCR and Cloud Build

This is the third episode of our **Cloud Native DevOps on GCP **series. In the previous chapters, we have achieved the following: Built a GKE Cluster with Terraform **Created a CI/CD pipeline with GKE, GCR and Cloud Build ** This time, we will take a step further and go completely serverless by deploying the same Node app onto the Google Cloud Run platform. Cloud Run is built from an open source project named Knative, which is a serverless framework developed based on the industry proven Kubernetes architecture. Whilst Knative is developed with the same event-driven concept (like other serverless solutions), it also offers great flexibility and multi-cloud portability at a container level. ...

June 13, 2020 · 4 min · route179

Cloud Native DevOps on GCP Series Ep2 – Create a CI/CD pipeline with GKE, GCR and Cloud Build

This is the second episode of our **Cloud Native DevOps on GCP **series. In the previous chapter, we have built a multi-AZ GKE cluster with Terraform. This time, we’ll create a cloud native CI/CD pipeline leveraging our GKE cluster and Google DevOps tools such as Cloud Build and Google Container Registry (GCR). We’ll create a Cloud Build trigger by connecting to GitHub repository to perform automatic build, test and deployment of a sample micro-service app onto the GKE cluster. ...

June 9, 2020 · 6 min · route179