Support Mobycast
-> https://glow.fm/mobycast <-
In this episode, we explain how to move an existing ECS application to private subnets. We cover the following topics:
- We describe the existing application, which is a typical two-tier web application, with a web service fronted by an Application Load Balancer (ALB) and database hosted on MySQL using RDS.
- The current application is containerized and running under ECS.
- Everything (the load balancer, ECS cluster, RDS instance) is running on public subnets.
- The goal is to leave only the ALB public-facing, with all other resources protected on private subnets.
- There are two phases to moving the application to private subnets. First, we need to move the ECS cluster to private subnets. Then, we can move the RDS instance to private subnets.
- We detail step-by-step two deployment approaches for moving our ECS cluster to private subnets, both of which involve zero downtime.
- Rolling deployment, which updates the existing cluster in-place.
- Blue/green deployment, which creates a new cluster to replace the existing one.
- We discuss the steps on moving the database instance to private subnets, including application downtime considerations.
- As a bonus, we explain how to add encryption-at-rest to the RDS instance during the migration.
Links
End Song
The Runner (Lost Lake Remix) by Fax
More Info
For a full transcription of this episode, please visit the episode webpage.
We'd love to hear from you! You can reach us at: