简体   繁体   English

AWS Cloudwatch - 当我尝试为SQS创建警报时,自动调节组未显示

[英]AWS Cloudwatch - Autoscaling groups are not showing up when I try to create an alarm for SQS

I have a few queues on AWS that I would like to created alarms (when the amount of messages waiting to be interpreted are greater than 100 for example) and start another EC2 instance do help parse this messages quicker. 我在AWS上有几个队列,我想创建警报(例如,当等待解释的消息数量大于100时)并启动另一个EC2实例时,请帮助更快地解析此消息。 However the group and action options continue empty/blocked even after I created groups using AWS CLI. 但是,即使在使用AWS CLI创建组后,组和操作选项也会继续清空/阻止。

在此输入图像描述 I created the groups with these commands: 我用这些命令创建了组:

as-create-launch-config NomeDaInstancia --image-id ami-b75373de --instance-type t1.micro

as-create-auto-scaling-group AutoScalingGroupTeste --launch-configuration NomeDaInstancia --region us-east-1 --availability-zones us-east-1a,us-east-1c,us-east-1d --min-size 1 --max-size 2

Anybody can tell me what is wrong? 谁能告诉我有什么问题? Everything is running North Virginia (US_East) region. 一切都在北弗吉尼亚(US_East)地区。

I recently experienced the same issue. 我最近遇到了同样的问题。 If there is not a previous scaling policy created, the auto-scaling group will not appear in the alarms form. 如果未创建先前的扩展策略 ,则自动缩放组不会出现在警报表单中。 These are the steps I did: 这些是我做的步骤:

  1. Create the alarm anyway, without the "auto-scaling" action. 无论如何都要创建警报,而不进行“自动缩放”操作。
  2. Go to EC2 > Auto Scaling Groups . 转到EC2> Auto Scaling Groups
  3. Select the group and go to Scaling Policies tab. 选择该组,然后转到“ 扩展策略”选项卡。
  4. Manually create the auto-scaling Policy ( Add Policy button) from this view (the Alarm you have created in step 1 should appear here). 从此视图手动创建自动缩放策略( 添加策略按钮)(此处显示您在步骤1中创建的警报)。
  5. Go back to Cloudwatch and, after a few minutes, the auto-scaling group will be available in the alarms set-up form. 返回Cloudwatch ,几分钟后,警报设置表格中将显示自动缩放组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM