第 11 章 让抓取工具成为真正的服务

在本章中,我们将介绍:

  • 创建和配置 Elastic Cloud 试用帐户

  • 使用 curl 访问 Elastic Cloud 集群

  • 使用 Python 连接 Elastic Cloud 集群

  • 使用 Python API 执行 Elasticsearch 查询

  • 使用 Elasticsearch 查询具有特定技能的职位

  • 修改 API 以按技能搜索职位

  • 在环境中存储配置

  • 为 ECS 创建 AWS IAM 用户和密钥对

  • 配置 Docker 以使用 ECR 进行身份验证

  • 将容器推入 ECR

  • 创建 ECS 集群

  • 创建一个任务来运行我们的容器

  • 启动并访问 AWS 中的容器

在本章中,我们将首先添加使用 Elasticsearch 搜索职位列表的功能,并扩展此功能的 API。 然后将把 Elasticsearch 功能转移到 Elastic Cloud,这是我们基于云的抓取工具启用云的第一步。 然后,我们将 Docker 容器移动到 Amazon Elastic Container Repository (ECR),最后在 Amazon Elastic Container Service (ECS) 中运行我们的容器(和抓取工具)。