【问题标题】:using aws cli how to increase and decrease the number of instances using auto scaling group使用aws cli如何增加和减少使用自动伸缩组的实例数
【发布时间】:2020-12-23 20:15:43
【问题描述】:

我的 Auto Scaling 组已链接到启动模板。

使用 aws cli 如何使用 aws cli 为 Auto Scaling 组增加或减少所需的实例数?

【问题讨论】:

    标签: aws-cli


    【解决方案1】:

    假设您已安装 AWS Cli,该命令如下所示:

    aws autoscaling update-auto-scaling-group --auto-scaling-group-name my-auto-scaling-group --health-check-type ELB --health-check-grace-period 60

    更多信息在这里:https://docs.aws.amazon.com/cli/latest/reference/autoscaling/update-auto-scaling-group.html

    【讨论】:

    • 不准确。相关参数为--desired-capacity--min-size & --max-size
    • 你说得对,我错过了,尽管链接包含完整信息。
    猜你喜欢
    • 2017-10-06
    • 2015-09-01
    • 1970-01-01
    • 2017-12-19
    • 2014-10-15
    • 1970-01-01
    • 2021-08-06
    • 2019-10-09
    • 2016-06-17
    相关资源
    最近更新 更多