【问题标题】:Specify security configuration in Amazon EMR from a CloudFormation Template通过 CloudFormation 模板在 Amazon EMR 中指定安全配置
【发布时间】:2017-06-26 22:35:40
【问题描述】:

创建 EMR 集群时,您可以指定我之前创建的安全配置。如何从 JSON cloudformation 模板指定此选项?

我在这里引用:http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-additionalinfo

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation amazon-emr


    【解决方案1】:

    不幸的是,RunJobFlow API 的 SecurityConfiguration 请求参数在 AWS::EMR::Cluster CloudFormation 资源上没有相应的属性,因此 CloudFormation 似乎(尚未)正式支持此功能。此功能是在 Sep 21 2016 上添加的,新功能公告与其在现有 CloudFormation 资源中的相应支持之间通常存在延迟。

    作为一种解决方法,您可以创建一个直接调用RunJobFlow API 的Custom Resource

    【讨论】:

    • 很高兴知道。如果我在 AWS::EMR::Cluster 的 Configurations 属性中使用这个 docs.aws.amazon.com/cli/latest/reference/emr/… 会怎么样?
    • 我认为它不会起作用 - ConfigurationsSecurityConfiguration 是两个不同的属性。
    • 对此仍然很陌生,并试图解决这个问题。我看到了CreateSecurityConfiguration 行动。那么将如何使用它,在 EMR 下它的目的是什么?我从这里docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/… 转到 Amazon EMR 配置找到了它
    • 另外,您能否在答案中举例说明如何使用自定义资源在AWS::EMR::Cluster 中完成此任务?就我而言,我只想指定安全配置名称。
    猜你喜欢
    • 1970-01-01
    • 2017-04-01
    • 1970-01-01
    • 2017-06-25
    • 1970-01-01
    • 2017-05-11
    • 1970-01-01
    • 2017-06-04
    • 1970-01-01
    相关资源
    最近更新 更多