Discovery Automation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
yesterday
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
an hour ago