使用boto3检索具有自动缩放设置的EMR群集列表

时间:2019-02-04 01:33:07

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

在AWS Lambda中使用emr boto3是否可以检索设置了自动缩放参数的群集列表?如果可能,则应通过此链接使用哪个boto3客户端。 https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr.html#client

1 个答案:

答案 0 :(得分:0)

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

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

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

相关问题