Turn off AWS Auto Scaling Groups

Rashmika BS
Tera Guru

Can we turn off AWS Auto scaling groups? We are observing too many AWS VMs are being created and upon checking with Server team they said there are many autoscaling groups which are temporary. Any Best practice to disable this discovery?

10 REPLIES 10

ServiceNow removes VMs which are terminated but for this, you need to turn on real-time / event driven discovery to happen immediately - otherwise this change will be made in cmdb only when next discovery schedule runs. if as i said below if custom code is used to create a server record, then similar custom code must be used to clean up/remove the server record.

We do not have any custom code creating server. We have AWS cloud discovery active in our instance which is responsible for VM maintenance. 

Great - then please only turn on SNS based event driven discovery and let that do the cleanup. there's no magic here, servicenow would not know if a vm is deleted, so a notification or change coming from cloud is the way to trigger it and this is what event-driven discovery is all about.

Please follow docs for this.

See my friend, i understand your concern but the Disable AWS ASG Pattern?

 

Don’t disable the AWS ASG pattern yet—instead, pause the Discovery schedule temporarily. Check logs to confirm if Terminated instances are detected but not being removed. Enable auto-cleanup settings under CMDB Class Manager. Work with ServiceNow Support to confirm if this is a bug.

 

 

how do we rectify this cleanup of servers? why is it not happening?