Templates / Monitor & auto-heal AWS EC2 instances with multi-channel alerts

Monitor & auto-heal AWS EC2 instances with multi-channel alerts

Ready for 3.0

by Oneclick AI Squad ✓ · 199 views · created 2025-10-30 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs on a schedule (cron 0 */5 * * *). Along the way it connects Google Sheets. It also calls devops.oneclicksales.xyz over HTTP.

How it runs

Trigger: On a schedule (cron 0 */5 * * *).

  1. Get EC2 Instances (HTTP Request): calls devops.oneclicksales.xyz
  2. Loop Over Instances (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Check Instance Status (HTTP Request): calls devops.oneclicksales.xyz
  4. Check Health Status (If): checks a condition and branches into true / false
  5. Analyze Health Data (Code): runs custom JavaScript code
  6. Restart Instance (HTTP Request): calls devops.oneclicksales.xyz
  7. Send WhatsApp Alert (HTTP Request): calls an HTTP API (POST)
  8. Send Email: sends an email over SMTP
  9. Log to AlertsLog Sheet (Google Sheets): append or update

Services it uses

Google Sheets

HTTP calls to: devops.oneclicksales.xyz

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This n8n workflow automates the monitoring, health assessment, and self-healing of AWS EC2 instances in production environments. It runs periodic checks, identifies unhealthy instances based on status and metrics, restarts them automatically, and notifies…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.