Skip to content

Deploying a web application following the Blue/Green strategy on AWS using CircleCI for CI/CD, Ansible for SSH parametrization and Prometheus for monitoring.

Notifications You must be signed in to change notification settings

clequinio5/ci-cd-aws-webapp

Repository files navigation

CI/CD AWS deployment following the Blue|Green strategy

Stack

  • GitHub
  • CircleCI
  • AWS (EC2, Cloudformation, Cloudfront, S3)
  • Ansible
  • Prometheus (+ AlertManager)

CI/CD pipeline

Overview

CI/CD project

Why CI/CD?

Increase Revenue Reduce Cost Protect Revenue Avoid
  • Increase revenue
  • Reduce cost
  • Protect revenue
  • Avoid cost

Prerequise

  • CircleCI account
  • AWS account

Deploy

Manually create an empty S3 bucket that is supposed to have the green version of application and deploy the cloudfront infrastructure associated thanks to the aws-manual-setup folder.

Start to follow the repository from CircleCI. CircleCI will create a webhook in Github that will automatically trigger the CI/CD on each commit. Continuous Deployment is launched and will update existing infrastructure as shown above.

Prometheus Monitoring Server is set up manually thanks to these very good articles:

About

Deploying a web application following the Blue/Green strategy on AWS using CircleCI for CI/CD, Ansible for SSH parametrization and Prometheus for monitoring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published