⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
Cloud Services

AWS EC2 Scheduled Start-Stop

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.

#AWS EC2
#Cost Saving
#Automation
#Schedule
#DevOps

Automation Logic

n8n JSON Blueprint

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.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "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.

IMPLEMENTATION GUIDE

Required Nodes

  • AWS EC2 Node
  • Cost Saving Node
  • Schedule Node
  • DevOps Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user