DEV Community

Cover image for AWS Workshop: CICD-pipeline-cfn-ecs-fargate-bluegreen
jicoing
jicoing

Posted on • Updated on

AWS Workshop: CICD-pipeline-cfn-ecs-fargate-bluegreen

About

In this workshop we learn how to build a CI/CD pipeline to develop, containerize and deploy a web-based application on AWS Fargate using lambda for blue/green deployment.
Read more: https://workshops.aws/card/CICD-Pipeline-Cfn-ECS-Fargate-BlueGreen

Cloud9

Cloud9 environment was setup in us-east-1.
Environment: AWS-Workshop
Alt Text

Github Token

Github access token was setup.
Alt Text

CI/CD Pipeline built

FORK THE REPO
CLONE THE REPO
SWITCH TO FARGATE BRANCH
RUN SCRIPT (IAC)
Alt Text

Inputs

S3 Bucket: jicoing-aws-bucket
CloudFormation Stack Name: Workshop-stack-jicoing
GitHubUser: jicoing
GitHubToken: *************
Alt Text

Stack

Workshop-stack-jicoing
Alt Text

Deployment Pipeline

Deployment pipeline is built using Cloudformation.
Alt Text

Deploy Approve

Alt Text

Load balancer URL

Alt Text

Output

Alt Text

Target groups

Alt Text

Alt Text

ECS Cluster

Alt Text

Commit new code - index.php modified

The index.php file is edited to give a new background colour #b03043.
Alt Text

Alt Text

Blue/Green swap approval - CodePipeline

Alt Text

Output

New background is red

Alt Text

Top comments (0)