Effortless release management with Docker + AWS

Juan Aranguren
Spark Digital Community
2 min readOct 26, 2020

When working on Docker projects, AWS provides a couple of tools that may come in very handy for automating the creation of images and releasing them to live environments.

Here are the tools I recommend and the benefits you’ll get by using them.

AWS can simplify Docker Image management by using CodeCommit, CodeBuild and ECR.

→ ECR

Amazon’s Elastic Container Registry is a Docker registry service fully managed by AWS. Here you can push your Docker images the same way you would with DockerHub. The benefit I see in ECR is that if you are deploying a Docker image to an AWS EC2 instance, then you are already in the same AWS ecosystem.

Some additional pros and cons of using ECR vs Docker Hub may be found here.

→ CodeCommit

CodeCommit provides a fully-managed source control service that makes application code easy to manage. You don’t need servers or infrastructure to host the environment where your code lives while your Software Engineers work on shipping new releases.

For very small teams (just one Dev) or for large ones, you can manage your applications and commit your code changes to CodeCommit, keeping it safe and up-to-date.

→ CodeBuild

CodeBuild is a continuous integration service that compiles source code. It can run tests and also produces software packages that are ready to deploy. You can deploy to any of the environments that are part of your infrastructure.

With these 3 services, you can connect your Dev environment to CodeCommit and once you commit and push the changes, you are one click away from having a new Docker image including the recent changes, that is already deployed to ECR and from there, you only need to pull the image and run it.

After setting them up myself, I definitely recommend them to anyone that is looking to reduce efforts regarding release and Dev environment management.

--

--