创建 Azure Cosmos DB 连接 - Amazon Glue
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

创建 Azure Cosmos DB 连接

先决条件:

配置 Azure Cosmos DB 连接:
  1. 在 Amazon Secrets Manager 中,使用您的 Azure Cosmos DB 密钥创建一个密钥。要在 Secrets Manager 中创建密钥,请按照 Amazon Secrets Manager 文档中创建 Amazon Secrets Manager 密钥中的教程进行操作。创建密钥后,保留密钥名称 secretName,以供下一步使用。

    • 在选择键/值对时,请使用键 spark.cosmos.accountKey 和值 cosmosKey 创建一个键值对。

  2. 在 Amazon Glue 控制台中,按照 添加 Amazon Glue 连接 中的步骤创建一个连接。创建连接后,保留连接名为 connectionName,以供未来在 Amazon Glue 中使用。

    • 选择连接类型时,请选择 Azure Cosmos DB。

    • 选择 Amazon 密钥时,请提供 secretName