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 this configured but they are all fairly simple.  Let's walk through them:

  1. The following creates an ECR cluster named scraper-cluster:
$ aws ecs create-cluster --cluster-name scraper-cluster{  "cluster": {    "clusterName": "scraper-cluster",    "registeredContainerInstancesCount": 0,    "clusterArn": "arn:aws:ecs:us-west-2:414704166289:cluster/scraper-cluster",    "status": "ACTIVE",    "activeServicesCount": 0, "pendingTasksCount": ...

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.