Deploying applications to Amazon ECS
CircleCI executes our build steps each time we push a new commit. Now, we want to build our Docker image and deploy it automatically to a machine that will serve our application to the public.
Our database and uploaded images are hosted on AWS already, so we can also use AWS to serve our application. Setting up AWS correctly is a significant task, and it takes a large amount of time. We will use Amazon ECS to run our Docker image. Still, to correctly set up the network, security, and container registry is too complex to be explained in just one chapter. I recommend that you take a course or pick up a separate book to understand and learn advanced setups with AWS, and the configuration that is needed to get production-ready hosting. For now, we will use ECS to get the container, including the database connection, running.
Before directly going to Amazon ECS and creating your cluster, we need to prepare two services – one is AWS ALB,...