gpt4 book ai didi

amazon-web-services - 创建跨账户快速查看仪表板

转载 作者:行者123 更新时间:2023-12-04 09:37:33 28 4
gpt4 key购买 nike

尝试从账户 A 中的模板在账户 B 中创建 aws quicksight 仪表板时,出现错误

An error occurred (AccessDeniedException) when calling the CreateDashboard operation: User: arn:aws:sts::account B:assumed-role/ is not authorized to perform: quicksight:PassDataSet on resource: arn:aws:quicksight:us-east-1:account A:dataset/


我尝试更新数据集的权限,但失败了

when calling the UpdateDataSetPermissions operation: All principals in ResourcePermission list and the requester must be under the same account


所以似乎我无法将数据集访问权限授予其他帐户。
我怎样才能解决这个问题,或者甚至可以从跨账户数据集创建仪表板?

最佳答案

我们遇到了完全相同的问题,并通过 AWS 提出了一张票,以了解如何在账户之间共享分析。在账户 A 中创建模板后还有一个额外的步骤,即在账户 B 中创建另一个模板,即:

From Account B, call Create template CLI : aws quicksightcreate-template --aws-account-id --template-idfirsttemplate --source-entity file://TemplateFromtemplate.json--profile default

Content of TemplateFromtemplate.json file are as below :

{
"SourceTemplate":{
"Arn":"arn:aws:quicksight:us-east-1:<Account A ID>:template/firsttemplate"
}
}
总之,我们成功复制分析所遵循的步骤:
  • 从目标分析/数据集在账户 A 中创建模板。
  • 更新账户 A 模板中的权限(添加账户 B 根用户)。
  • 从账户 A 模板在账户 B 中创建模板。
  • 创建账户 B 中的匹配数据集到账户 A 中的目标数据集。
  • 使用步骤 3 中的模板和步骤 4 中的数据集在账户 B 中创建仪表板。
  • 更新账户 B 仪表板的权限,使其在 UI 中可见。
  • 如果需要,您可以使用 UI 中的“另存为”选项将仪表板转换回分析以进行编辑。
  • 关于amazon-web-services - 创建跨账户快速查看仪表板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62494237/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com