【问题标题】:Retrieve the list of EMR clusters which have the autoscaling setup using boto3使用 boto3 检索具有自动缩放设置的 EMR 集群列表
【发布时间】:2019-02-04 01:33:06
【问题描述】:

在 aws lambda 中使用 emr boto3 是否可以检索具有自动缩放参数设置的集群列表?如果可能,那么应该从此链接使用哪个 boto3 客户端。 https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr.html#client

【问题讨论】:

    标签: python amazon-web-services aws-lambda boto3 amazon-emr


    【解决方案1】:

    自动扩缩是在实例组上设置的,而不是在集群上。

    如果您想查看所有实例组的自动扩缩政策,您首先需要获取每个集群的list of all clusters,然后是get the instance groups

    请注意,在对get_instance_groups 的响应中,您将获得AutoScalingPolicy 值。

    【讨论】:

      猜你喜欢
      • 2019-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-18
      相关资源
      最近更新 更多