【问题标题】:How do I share my Glue Catalog with another account via Lake Formation?如何通过 Lake Formation 与另一个帐户共享我的 Glue 目录?
【发布时间】:2021-07-07 18:56:36
【问题描述】:

我已在我的源帐户中创建了 Glue 表。然后我去了 Lake Formation 并与目标帐户共享表。

当我在目标帐户中转到 Lake Formation 时,我看不到共享表。根据此处的文档 (https://docs.aws.amazon.com/lake-formation/latest/dg/viewing-available-shared-resources.html),它应该会自动出现。

我错过了什么吗?

【问题讨论】:

    标签: amazon-web-services aws-glue aws-glue-data-catalog aws-lake-formation


    【解决方案1】:
    1. 在源帐户中转到 Lake Formation 并授予外部帐户(目标帐户)访问您的数据库/表的权限

    2. 在目标帐户中,转到资源访问管理器并批准资源共享请求

    此时,数据库/表将显示在 Lake Formation 控制台中。如果要从 Athena/Spectrum 查询,需要:

    1. 通过资源链接转到 Lake Formation 并创建表。源应该是共享表。

    文档:https://docs.aws.amazon.com/lake-formation/latest/dg/cross-account-read-data.html

    【讨论】:

      【解决方案2】:

      只是为了添加到@Melissa 答案。如果您使用基于标签的访问控制,则不需要资源访问管理器 (RAM) 部分。基本上将标签分配给您要共享的数据库和表,并授予外部帐户对标签的访问权限。

      请参阅 AWS 详细信息 documentation,因为这将为您提供更全面的设置指南。

      【讨论】:

        猜你喜欢
        • 2022-01-03
        • 1970-01-01
        • 2022-11-09
        • 2017-01-21
        • 1970-01-01
        • 1970-01-01
        • 2012-07-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多