⚡ Only 300 spots remaining • Closes in 2d 14h 32m
Stop paying for idle resources. This workflow automatically stops AWS EC2 development instances at 7 PM on weekdays and restarts them at 8 AM. Save up to 60% on dev environment cloud bills.
This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.
This is an exclusive blueprint. Copy the JSON below to use it.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"value": 12
}
]
}
},
"name": "Morning/Evening Cron",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
100,
300
]
},
{
"parameters": {
"jsCode": "const hour = new Date().getHours();\nreturn [{ json: { action: hour >= 18 ? 'StopInstances' : 'StartInstances' } }];"
},
"name": "Determine Action",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
300,
300
]
},
{
"parameters": {
"resource": "instance",
"operation": "={{$json.action}}",
"instanceIds": [
"i-0123456789abcdef0"
]
},
"name": "EC2 Power Action",
"type": "n8n-nodes-base.awsEc2",
"typeVersion": 1,
"position": [
500,
300
]
}
],
"connections": {
"Morning/Evening Cron": {
"main": [
[
{
"node": "Determine Action",
"type": "main",
"index": 0
}
]
]
},
"Determine Action": {
"main": [
[
{
"node": "EC2 Power Action",
"type": "main",
"index": 0
}
]
]
}
}
}To use this, copy the JSON above and paste it directly onto your n8n canvas.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.