【问题标题】:How to specify a WorkGroup for Athena NamedQueries in a CloudFormation template?如何在 CloudFormation 模板中为 Athena NamedQueries 指定工作组?
【发布时间】:2020-06-17 16:52:49
【问题描述】:

我在我的 CloudFormation 模板中指定了 NamedQuery,并且我正在关注来自 here 的文档。

我还按照here 的文档在我的 CloudFormation 模板中创建了一个工作组。我配置了我的 NamedQuery,使其依赖于我的工作组。

当我部署 CloudFormation 堆栈时,一切都部署得很好。问题是我的命名查询总是在 Athena 上的“主要”工作组中结束。如何让它最终出现在我的 CloudFormation 模板中创建的自定义工作组中?在文档中,CloudFormation 似乎不支持指定 WorkGroup,所以这甚至可能吗?

【问题讨论】:

标签: amazon-cloudformation amazon-athena


【解决方案1】:

从您链接到的 CloudFormation 文档看来,您目前无法将命名查询与具有 CloudFormation 的工作组相关联。正如您所注意到的,AWS::Athena::NamedQuery 资源没有 WorkGroup 属性,DependsOn 只是控制资源创建顺序的 CloudFormation 功能。

您必须选择:要么实现 custom resource(或 resource provider),要么等待 CloudFormation 实现 WorkGroup 属性(您可以在 aws-cloudformation-coverage-roadmap 存储库中提交问题,告诉团队您需要这个功能)。

【讨论】:

    猜你喜欢
    • 2020-08-17
    • 2019-11-29
    • 2017-04-01
    • 2018-11-24
    • 2016-06-17
    • 1970-01-01
    • 2017-05-25
    • 2021-10-21
    • 1970-01-01
    相关资源
    最近更新 更多