Scheduled Scale-Down for Non-Prod Environments
Auto-scale down or stop non-prod resources (staging, dev EC2, RDS, K8s) during off-hours; resume before business hours.
Overview
**What it does**: Scheduled (5pm weekday + midnight Friday) → query resources tagged with environment=staging or environment=dev → scale down: EC2 → stopped, RDS → pause, K8s → scale replicas to 0 → email team with confirmation. Scheduled (6am weekday + 8am Monday) → scale back up: EC2 → running, RDS → resume, K8s → restore replicas. **Setup (4 steps)**: 1. Configure cloud provider: AWS (EC2, RDS APIs), GCP (Compute Engine), Azure (VMs) 2. Define target resources: tag-based filtering (env=staging|dev) 3. Set schedules: scale-down (5pm weekday), scale-up (6am weekday) 4. Configure notification: Slack channel for start/stop confirmations **Apps/nodes**: Schedule, HTTP request (cloud API), code node (resource filtering), HTTP request (scale actions), Slack. **Credentials required**: Cloud API key, Slack workspace. **Difficulty**: Easy | **Setup time**: 8 minutes. **Business outcome**: Non-prod spend ↓ 30-50% with automation, resource costs ↓ predictable, team efficiency ↑.
What's included
Inside this workflow
Quickstart
- 01
Download the JSON
With an active Library Pass, download the workflow file right from this page or your dashboard.
- 02
Import into n8n
Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.
- 03
Plug in credentials
Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.
- 04
Activate and test
Run once with sample input, confirm the expected output, then flip the activate toggle.
Frequently Asked Questions
How do I import this workflow into n8n?
What credentials do I need to provide?
Are the credentials included in the JSON file?
Can I edit or customize the workflow after importing?
What n8n version is required?
What if something breaks after I import it?
Can I use this workflow for my customers or business?
Will the workflow receive updates?
Do I need n8n Pro or a paid plan?
Can I ask for a custom workflow?
Reviews (0)
No reviews yet. Be the first.
Sign in to leave a review.
Included with any pass
This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.
Get a Library Pass- Every agent in the library
- All new releases while active
- Unlimited downloads
- Commercial-use license
- Priority email support
- 30-day money-back guarantee
More in Compute
Idle Resource Reaper Digest
Weekly: detect unused EC2 instances, RDS databases, and storage; flag for cleanup with cost impact; auto-tag for shutdown and notify team.
Service Quota Watcher
Weekly: monitor service quotas (EC2, RDS, Lambda, K8s); alert when usage approaches limit; auto-request quota increase.