【问题标题】:as-create-or-update-trigger: command not foundas-create-or-update-trigger:找不到命令
【发布时间】:2012-09-02 22:42:39
【问题描述】:

我在这里下载 Auto Scaling 工具:

http://aws.amazon.com/developertools/2535

当我尝试创建触发器时,找不到该命令。我也导出了它的环境,但是没有找到命令。我试图找到那个 as-create-or-update-trigger 文件夹,但是没有这样的文件。怎么了?

root@ip:/root/tools# as-create-or-update-trigger Trigger1 --auto-scaling-group AutoScale --namespace "AWS/EC2" --measure CPUUtilization --statistic Average --dimensions "AutoScalingGroupName=AutoScale" --units "Percent" --period 60 --lower-threshold 30 --upper-threshold 70 --lower-breach-increment"=-1" --upper-breach-increment "1" --breach-duration 120 OK-创建/更新触发器

as-create-or-update-trigger: 找不到命令

有人有同样的问题吗?有什么解决办法吗?

【问题讨论】:

    标签: amazon-ec2 amazon-web-services


    【解决方案1】:

    我认为这已被弃用,取而代之的是“mon-put-metric-alarm”

    【讨论】:

      【解决方案2】:

      该命令现已弃用,取而代之的是 自动扩展策略和 cloudwatch 警报。

      这里有一些关于如何执行此操作的文档: http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html

      【讨论】:

        猜你喜欢
        • 2013-10-10
        • 1970-01-01
        • 1970-01-01
        • 2018-01-09
        • 2019-04-26
        • 2012-10-27
        • 1970-01-01
        • 2016-12-09
        • 2018-01-25
        相关资源
        最近更新 更多