Category: Software, Kubernetes, Docker

In AWS, we have several ways to deploy Django (and not Django applications) with Docker. We can use ECS or EKS clusters.

We only need to add this shell script to set up Docker: We also need to attach one IAM role to our instance.

I like to put this key-pair in my .ssh/config: To deploy our application we need to follow those steps: I've created a simple shell script called deploy.sh to perform all tasks: This script assumes that there's a deploy.env file with our personal configuration (AWS profile, the host of the EC2, instance, the ECR, and things like that): In this example, I'm using Docker Swarm to deploy the application.

Maybe ECS or EKS are better solutions to deploy docker applications in AWS, but we also can deploy easily to one docker host in a EC2 instance that it can be ready within a couple of minutes.

Related Articles