Discovery Automation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
HI Experts,
I am working on the automation part of ITOM. Requirement is:
Suppose We get the alert through Event Management that the VM in the Cloud is not in use for last 6 months. So we need to remove that VMs from the cloud. So How we create a connection with SNOW & the cloud environment (AWS)? Is there any Integration or we can do using MID server?
Thanks & Regards
Mirza
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hey @MirzaSaquiB
Yes, this can be achieved from ServiceNow, but the approach depends on your AWS integration setup.
The preferred method is to use IntegrationHub with the AWS Spoke or ServiceNow Cloud Management, which provides native actions to manage EC2 instances (start, stop, terminate, etc.) through AWS APIs. In this case, a Flow Designer flow can be triggered by the Event Management alert, perform any required approvals, and then terminate the EC2 instance automatically.
A MID Server is not mandatory for AWS integrations because ServiceNow can communicate directly with AWS APIs. However, if your organization has network restrictions or requires all outbound communication to pass through an internal network, you can use a MID Server to execute AWS CLI, PowerShell, or custom scripts.
Typical flow:
Event Management Alert → Flow Designer → Approval (optional) → AWS API/Spoke Action → Terminate EC2 → Update CMDB
Also, before automating deletion, ensure there is a reliable mechanism (CloudWatch, Compute Optimizer, Cloud Insights, etc.) to identify unused VMs and validate that they are safe to decommission.
*********************************************************************************************************************************
If this response helps, please mark it as Accept as Solution and Helpful.
Doing so helps others in the community and encourages me to keep contributing.
Regards
Vaishali Singh
Servicenow Developer
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Mirza,
If you need lifecycle based events for CIs from AWS and you are using the SGC, as Vaishali has stated - you simply need configure the SGC/Listener. Documentation for that here:
Thanks,
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hey @MirzaSaquiB
Hope you are doing well.
Did my previous reply answer your question?
If it was helpful, please mark it as correct ✓ and close the thread . This will help other readers find the solution more easily.
Thankyou & Regards
Vaishali Singh
Servicenow Developer
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb