Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

amazon web services - AWS Auto Scaling Group SNS Notifications to trigger at certain number of scaled instances

I currently have an Activity Notification set for our Auto Scaling Groups for 'launch' type. It fires based on any amount of launches. Is there a way to restrict the Notification to send only when we are over a certain amount of scaled instances? For example I have max 15 instances to scale to, I'd like to get Notifications only when we're over 10 scaled instances.

question from:https://stackoverflow.com/questions/65930056/aws-auto-scaling-group-sns-notifications-to-trigger-at-certain-number-of-scaled

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No, it is not possible to "restrict" the notification.

However, you could create an Amazon CloudWatch alarm on the GroupTotalInstances metric. When that metric exceeds a desired value, it can trigger a notification.

See: Monitoring CloudWatch metrics for your Auto Scaling groups and instances - Amazon EC2 Auto Scaling


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...