How to do it

We proceed with the recipe as follows:

  1. Now we can run our task. We do this with the following command:
$ aws ecs run-task --cluster scraper-cluster --task-definition scraper-as-a-service:17 --count 1{  "tasks": [    {      "taskArn": "arn:aws:ecs:us-west-2:414704166289:task/00d7b868-1b99-4b54-9f2a-0d5d0ae75197",      "version": 1,      "group": "family:scraper-as-a-service",      "containerInstanceArn": "arn:aws:ecs:us-west-2:414704166289:container-instance/5959fd63-7fd6-4f0e-92aa-ea136dabd762",      "taskDefinitionArn": "arn:aws:ecs:us-west-2:414704166289:task-definition/scraper-as-a-service:17",      "containers": [        {          "name": "rabbitmq",          "containerArn": "arn:aws:ecs:us-west-2:414704166289:container/4b14d4d5-422c-4ffa-a64c-476a983ec43b", "lastStatus": "PENDING", ...

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.