DrupalCon Seattle 2019: Drupal Blue/Green deployments with AWS ECS

34:04
397
5
1
0
1
Apr 18, 2019

Drupal deployments are hard. You have to make sure your code is deployed, composer dependencies are pulled, schema updates are performed and caches cleared, all with keeping the website up and responsive for the users, add the fact that you host on multiple servers and you have active users online updating some content 24/7 and it gets even more interesting. What if anything goes wrong and you want to rollback, do you have to deploy again and have your users wait?

The answer is No. Blue/Green deployments is the solution to this problem, but how do we do that with Drupal?

I’m going to cover blue/green deployments in Drupal when managing your own infrastructure with Docker on AWS ECS and discuss different scenarios and challenges with those.

Agenda:

Drupal deployment problem and Blue/Green deployment overview in Drupal deployments perspective

Infrastructure setup overview

CI/CD Pipeline overview

Managing state. Stateful vs Stateless applications deployment challenges and solutions

Cluster and service auto-scaling as demand grows

6. Secrets management

Takeaway

After this session you should be able to answer the following questions:

What is Blue/Green deployment and why do I need it?

How to do Blue/Green deployments with Drupal hosted on AWS ECS

How to prepare your Docker drupal stack for blue/green

How to architect your Drupal website to have minimum impact on user data loss during deployments and/or rollbacks.

How to use tools like Jenkins Pipelines to implement Blue/Green CI/CD pipeline

Slides: https://docs.google.com/presentation/d/12rcgBHTSLAvq0qLKxz4HUtuvNgDLh9J…

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.