Elastic Container Service (ECS) is an AWS service that runs your Docker containers in the cloud. There is a lot of power (and detail) in using ECS. We will look at a simple deployment that runs our containers on a single EC2 virtual machine. Our goal is to get our scraper to the cloud. Extensive detail on using ECS to scale out the scraper is for another time (and book).
Creating an ECS cluster
How to do it
We start by creating an ECR cluster using the AWS CLI. The we will create one EC2 virtual machine in the cluster to run our containers.
I've included a shell file, in the 11/06 folder, names create-cluster-complete.sh, which runs through all of these commands in one run.
There are number of steps to getting...