08. Deployment Strategies

ND#9991 C03 L02 A0 Blue Green

Rolling Deployment

Deployment Strategies Graphic

Blue/Green Deployment Strategy

Blue/Green Deployment Strategy

  • apt install ansible
  • pip install boto
  • Jenkins plugin CloudBees AWS Credentials Plugin
  • Configure AWS Credentials in Jenkins
  • Map credentials from Jenkins to Pipeline application

Blue/Green Deployment IAM Policy

Blue/Green Deployment IAM Policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:*",
                "cloudwatch:*",
                "route53:*",
                "ec2:*",
                "ec2:DescribeAccountAttributes",
                "elasticloadbalancing:*"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "iam:CreateServiceLinkedRole",
            "Resource": "arn:aws:iam::*:role/aws-service-role/*"
        }
    ]
}

Blue/Green Deployment Strategy (cont.)

Blue/Green Deployment Strategy (cont.)

  • Set up Private Route53 Zone
  • Configure Healthcheck
  • Run Blue Deployment
  • Run Green Deployment
  • Check Route53 entries