AWS Step Functions vs n8n: which fits which workload
Step Functions fits AWS-native state machines that run for a long time and start from AWS events, while self-hosted n8n fits visual automation that connects many business systems, including ones AWS does not host. If your trigger is a growing AWS bill or a need to keep automation inside your own network, the choice turns on four questions: the execution model, whether the workflows must stay inside AWS, the license terms for your use, and who will operate the platform. Answer them workflow by workflow, since a single estate often holds both kinds of work.
Start with the execution model, because it sets what each tool can promise. Standard workflows can run for up to one year with exactly-once execution and keep history for 90 days after an execution completes, which suits approval chains, long waits and audit trails. Express workflows run for up to five minutes, do not keep execution history (CloudWatch Logs has to carry that job), and cannot use the .sync or .waitForTaskToken integration patterns. The workflow type cannot be changed after creation, so list which type each state machine uses. Then list the triggers: Step Functions starts from Amazon API Gateway, IoT rules and over 140 other EventBridge sources, and each one needs a replacement, such as an n8n webhook or schedule trigger, that you test before cutover.
Where workflows must stay inside AWS, Step Functions keeps definitions, IAM roles and service integrations in one account, and the DescribeStateMachine API returns the definition and role ARN, which helps with inventory. Self-hosted n8n can run in your own cloud account, data center or private network, but check its LICENSE.md first: the main codebase is under the Sustainable Use License, which covers internal business and non-commercial use, and any file with .ee in its name needs an n8n Enterprise License. Confirm with counsel whether a customer-facing or embedded use fits those terms. Then decide who operates the platform. The Community edition runs without a license key, but SSO and LDAP, Git environments and log streaming are included only in the Business and Enterprise plans, and multi-main high availability is Enterprise only. Name the team that patches, backs up and is on call for n8n before you commit.
Which fits better: AWS Step Functions vs n8n by scenario
This table compares AWS Step Functions and self-hosted n8n across common scenarios and names the platform that usually fits better. Read each condition as the point where the advantage starts to matter, and check each point to confirm in your own environment before deciding. The main takeaway: Step Functions suits AWS-native and long-running state machines, while n8n suits business-led automation kept inside your own network.
| Scenario | Better fit | Why it holds | Point to confirm |
|---|---|---|---|
| Approval steps that wait for a person over several days | AWS Step Functions Standard | Standard workflows can run up to one year with exactly-once execution, which suits long waits. | Confirm how your n8n version resumes waits that span days and where execution data is kept. |
| High-volume short handlers triggered by AWS events | AWS Step Functions Express | Express bills per request and duration but stops at five minutes and keeps no execution history. | Confirm event volume, CloudWatch Logs retention, and that no handler needs the .sync or callback patterns. |
| SaaS-to-SaaS automations built by business teams | Self-hosted n8n | A visual canvas and more than 1,500 advertised integrations let business teams build flows without Amazon States Language. | Confirm your SaaS apps are covered, and whether SSO or LDAP requires the Business plan. |
| Workflows that must run in your own data center | Self-hosted n8n | Step Functions is an AWS-managed service, so it cannot run in your own data center. | Confirm that an n8n install on your hardware meets your licensing, network and operations rules. |
| Workflows that call many AWS services | AWS Step Functions Standard | Native service integrations and EventBridge sources, plus API Gateway or IoT triggers, keep AWS calls inside one managed service. | Confirm which service integrations you use, since Express excludes the .sync and callback patterns. |
| Audit trails exported to your own log platform | n8n Business or Enterprise | Log streaming is included only in n8n's Business and Enterprise plans. | Confirm the Business plan fits your self-hosting rules, and whether 90-day Step Functions history meets your retention rule. |
How the two models run a workflow differently
The first decision is how long each run can live and what delivery guarantee it carries. Step Functions defines every state machine in Amazon States Language, and the workflow type is fixed when the state machine is created. Standard workflows run for up to one year with exactly-once execution, and AWS retains their execution history for 90 days after an execution completes. Express workflows run for up to five minutes, with at-least-once execution for asynchronous runs and at-most-once for synchronous runs. Express also does not support the Job-run (.sync) or Callback (.waitForTaskToken) patterns, Distributed Map or activities, and it captures no execution history, so CloudWatch Logs must carry the audit trail.
n8n starts from a different place. Workflows are assembled on a visual canvas, and steps can be extended with custom JavaScript or Python code where the built-in nodes fall short. n8n counts an execution as one run of the whole workflow, regardless of how many steps it contains, so a workflow with many steps still counts once, while Standard bills each state transition separately. That counting rule shapes cost estimates and capacity planning. Confirm in n8n's documentation for your version how long a run may wait, how failed steps are retried and what delivery guarantee applies to triggers, because those answers decide whether a workflow can move without redesign.
Before comparing platforms, map each workflow's wait, retry and idempotency needs. List every workflow that waits on a human approval or an external callback, since those depend on pausing and resuming behavior that must be confirmed on the n8n side. Note which steps can safely run twice, because at-least-once delivery allows duplicates, and mark the steps that must never repeat, such as payments or record creation. For each workflow, write down the retry count and backoff it needs today. Then run the same workflows on a non-production n8n instance and compare observed behavior with the documented behavior. A workflow that depends on exactly-once semantics should not move until that test passes.
Capability differences between AWS Step Functions and n8n
This table compares how AWS Step Functions and self-hosted n8n handle the capabilities that shape a migration. Read each row as a question for your own workflows, and verify cells marked to confirm with AWS or n8n before you commit. In short, Step Functions is a managed state machine service with fixed run types and retention rules, while n8n is a self-hosted platform whose limits, retention and high availability depend on your edition and deployment.
| Capability | AWS Step Functions | Self-hosted n8n |
|---|---|---|
| Definition format and custom code | Amazon States Language JSON definitions; logic sits in states and the services they call | Visual canvas with custom JavaScript or Python code in workflow nodes |
| Run length and workflow types | Standard runs up to one year; Express runs up to five minutes. Type is fixed at creation. | Confirm maximum execution length and wait behavior for your version with n8n. |
| Execution guarantees | Standard is exactly-once; asynchronous Express is at-least-once, synchronous Express at-most-once. | Confirm retry, duplicate and failure handling per trigger and node type with n8n. |
| History retention | Standard retains history for 90 days after completion; Express needs CloudWatch Logs for history. | Kept in your own database; confirm retention and pruning settings with n8n. |
| Event triggers | API Gateway, IoT rules and over 140 EventBridge event sources can start workflows. | Webhooks and triggers; in queue mode the main instance handles them and passes runs to workers. |
| Service integrations | Callback and Job-run patterns, Distributed Map and activities are not available in Express. | More than 1,500 advertised integrations; every plan includes all of them. |
| Licensing | Managed service billed per state transition (Standard) or per request and duration (Express). | Sustainable Use License; .ee files need an n8n Enterprise License; not OSI-approved. |
| Editions and high availability | Single managed service; Standard and Express types. Confirm regional options with AWS. | Community is free; Business and Enterprise need a license key. Multi-main HA is Enterprise self-hosted only. |
| Single sign-on | Access governed by IAM; confirm federated sign-in options with AWS. | SSO and LDAP included in Business and Enterprise plans; SAML setup is documented by n8n. |
AWS Step Functions vs n8n for data location and hosting
Hosting and data location shape this comparison more than feature lists do. Step Functions keeps execution data in AWS-managed services under your account, while self-hosted n8n keeps it in infrastructure you operate, with its own key handling and licensing terms. Work through these six points with your security, legal and identity teams before a migration plan is written.
Where execution data lives
Step Functions keeps Standard workflow history inside AWS, and Express workflows keep no execution history, so CloudWatch Logs becomes the only audit trail for those runs. In self-hosted n8n, workflow data and credentials sit in the PostgreSQL database you operate, and queue mode passes executions through Redis between the main instance and its workers. Map each workflow to its storage location, retention setting and backup copy before you choose a model, because your records must stay where your rules require.
Choosing workflow typeShared encryption key in queue mode
In n8n queue mode, the main instance's encryption key must be shared with every worker and webhook processor so they can decrypt the credentials stored in the database. Every worker and webhook processor holds the key, which makes each node part of your trust boundary. Decide how the key is injected, who can read it from your secrets store, and how a rotation reaches every node before you scale out the worker pool.
n8n queue mode docsReading KMS-encrypted definitions
Step Functions returns a state machine's Amazon States Language definition, IAM role and configuration through DescribeStateMachine. For a KMS-encrypted definition, the caller needs kms:Decrypt on the key, so an export role without it cannot read the workflow logic it is meant to migrate. Give the export principal both permissions, record which keys protect which state machines, and test one export before any cutover planning starts.
SSO and LDAP editions
n8n's pricing page places SSO and LDAP in the Business and Enterprise plans, so a Community install does not include them. Step Functions access runs on IAM roles and policies in your AWS account, which may not match how staff sign in to a self-hosted automation interface. Decide whether an identity provider must sign people into n8n directly, and include the Business or Enterprise cost in your comparison. Ask n8n to confirm current edition terms in writing.
n8n pricing pageInternal use versus customer-facing automation
n8n's main codebase is under the Sustainable Use License, which covers use for internal business purposes and non-commercial or personal use. Running n8n to automate work inside your company fits that grant, but customer-facing automation is not clearly covered and needs written terms from n8n. Files with .ee in their name require a valid Enterprise License in every case, so confirm which features your team depends on before you build.
Compliance evidence and who issues it
DeployOpen prepares the systems, controls and evidence that a compliance assessment will ask for, including configuration records and access settings for both platforms. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work. Ask your auditor which evidence they expect for each control and whether they accept the proposed architecture before the build starts.
How n8n queue mode moves an execution through your network
The execution starts when a webhook or trigger reaches the main instance or webhook processor inside your network. That node places the job on Redis, which hands it to a pool of workers. Each worker reads and writes workflow run data in PostgreSQL, and every worker must hold the same encryption key as the main instance so it can open stored credentials. Workers then make outbound calls to external systems across the boundary. Check where Redis and PostgreSQL run, who can read the key, and which egress rules apply to the worker subnet. The diagram is illustrative of a typical queue mode layout.
Illustrative of a typical n8n queue mode layout inside the customer network.
What each side costs to run, and what drives it up
Each side bills different things. AWS charges per state transition or per Express request and duration, and CloudWatch Logs adds a separate charge for Express. The n8n Community edition has no license fee, so its cost moves to your infrastructure and staff, while paid n8n plans add a license. Expect one-time costs for migration and rebuilding workflows, and recurring costs for infrastructure, upgrades, on-call and licenses.
Standard per-transition charges
Standard workflows are billed per state transition, so every step, retry, wait and choice the state machine records adds to the bill. The published rate applies in US East (N. Virginia) and includes a free monthly allowance, so confirm the region and rate for your account before you model volume. Each branch of a Parallel or Map state adds its own transitions, and retry loops count every attempt. Ask for an estimate built from the state counts of your largest workflows and their monthly run volume. The transition volume is the recurring cost, while the migration effort is one-time.
AWS pricing pageExpress requests and duration
Express workflows are billed per request and per GB-second of duration, so the charge scales with how many executions run and how long each one holds memory. Express runs are limited to five minutes, so confirm that your longest workflows fit before you choose this type, and plan a separate design for anything that runs longer. Express also does not support the Job-run or Callback service integration patterns, which can change how you wire AWS services. Ask for the estimate to split request volume from duration for your heaviest flows, because the two drivers respond to different fixes.
Workflow type guideCloudWatch Logs for Express
Express workflows do not keep execution history, so CloudWatch Logs carries the audit trail for every run. Log volume depends on the logging level you configure and on the number of executions, and CloudWatch bills it separately from the Step Functions rates. Retention is a monthly cost that keeps growing, so keep logs for the period your compliance team requires and no longer. Ask the team to size log volume from a sample of production executions and to confirm the CloudWatch pricing for your region before you commit to Express.
n8n Community edition costs
The Community edition carries no license fee and runs without a license key. The cost sits with you: the virtual machines or containers, a production PostgreSQL database, backups, monitoring, patching and the staff time for upgrades. n8n ships minor releases roughly weekly, so budget time to test and roll them out. SSO, Git-based environments and log streaming are limited to the paid plans, so any control your auditors expect from those features needs a separate design. Confirm with counsel that your internal use fits the Sustainable Use License.
n8n hosting docsn8n Business and Enterprise
The Business plan lists at 667 euros per month billed annually and is self-hosted only on the pricing page. It adds SSO and LDAP, Git environments and log streaming. Enterprise is priced on request for self-hosted or cloud and adds dedicated support with an SLA, and multi-main high availability is limited to Enterprise self-hosted deployments. Ask the quote to state the license term, the number of environments, support hours, SLA terms, any upgrade or renewal increases, and whether a multi-main design is included. The license is a recurring cost that renews with the term.
n8n pricing pageAWS Step Functions vs n8n questions buyers ask before switching
Can I self-host n8n for free under the Sustainable Use License?
Yes, for internal business use, provided you stay within the license terms. Without a license key, n8n runs as the free Community edition. The main codebase is under the Sustainable Use License, which permits use or modification for internal business purposes or for non-commercial or personal use. Files with .ee in their name fall under a separate n8n Enterprise License, so confirm that your deployment does not depend on them. SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans, and multi-main high availability is limited to Enterprise self-hosted deployments. Offering n8n to your own customers as a hosted service is a different use, so confirm it with counsel against the license text before you plan around it.
How long does a migration from AWS Step Functions to n8n take?
The duration depends on your inventory, so ask for an estimate built from that list. The main drivers are:
- Workflow types: Express workflows run for up to five minutes and do not support the .sync or .waitForTaskToken patterns, so they often need redesign.
- Service integrations: each AWS task, IAM role and EventBridge trigger becomes an n8n node, credential or webhook.
- Flow logic: Choice, Wait, Parallel and Map states need manual translation.
- Retention: Standard execution history is kept for 90 days after an execution completes, so export what you need before that window closes.
- Hosting build: database, queue mode workers, encryption key handling and SSO.
- Testing: parallel runs and cutover checks for each workflow.
Count the state machines by type and trigger first. That count, plus the number of AWS integrations per workflow, is what moves the schedule most.
Can our engineers migrate from Step Functions to n8n without outside help?
Yes, a team can do it in-house if it already runs containers, PostgreSQL and JavaScript or Python code, and has time to test each workflow against its current behavior. Plan for the operational skills as well as the workflow rebuild: container hosting, database backup and restore, and encryption key handling. In queue mode, worker nodes need the main instance's encryption key to read stored credentials, so that key must be managed carefully across every process. Teams without this depth often bring in a partner for the hosting and hardening work while keeping workflow ownership in-house. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with the scope, deliverables and timelines agreed in writing before work starts. Confirm internal capacity against your inventory before you decide.
Who operates n8n after the migration, and what does that take?
Your platform or integration team operates it, and an outside partner only takes on the parts you contract for, such as upgrades and monitoring. The recurring work includes applying upgrades, watching queue depth and worker health, rotating credentials, testing backups and reviewing who can edit which workflows. n8n uses semantic versioning and ships minor releases roughly weekly, so plan a regular upgrade window and a test instance that mirrors production. Ask who owns on-call and who approves changes, because workflows that touch payments or patient data need the same change control as any other production system. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, which you can scope separately from the initial build. Confirm the current release cadence in the n8n release notes before you set your upgrade calendar.
Does n8n handle long waits the way Step Functions Standard workflows do?
Confirm this with n8n for your version before you commit, because the comparison here does not establish a maximum wait for a paused execution. Step Functions Standard workflows can run for up to one year with exactly-once execution, while Express workflows run for up to five minutes. n8n's Wait node pauses an execution and resumes it later, but several things decide whether a long wait is safe: where paused execution data is stored, how long execution data is retained, whether a restart or worker replacement loses a pending resume, and how paused runs behave during an upgrade. Test with a workflow that waits longer than your longest current wait, and include a worker restart and an upgrade in the test. Ask for each of these points to be documented in writing before you move any long-running state machine.
What should a self-hosted n8n migration quote include?
A quote should list each work package, the assumptions behind it and the acceptance test for each, so you can compare offers on the same scope. Ask for:
- Inventory and classification of state machines by type, trigger and AWS integration.
- Translation of each workflow, with the states that need manual rework named.
- Hosting build: containers or Kubernetes, PostgreSQL, queue mode workers if needed, secrets and SSO.
- Credential recreation and the access model.
- Parallel run, cutover and rollback steps.
- Backup, monitoring, documentation and handover.
- Ongoing support, upgrades and testing as a separate retainer.
Also confirm the workflow count assumed, the environments covered and who pays for n8n licenses. n8n's pricing page lists the Business plan at 667 euros per month billed annually and self-hosted only, which is a separate line from services and applies only if you need features such as SSO or Git environments. DeployOpen quotes follow from a written scope.
Moving workflows from AWS Step Functions to self-hosted n8n, step by step
This sequence moves AWS Step Functions state machines to self-hosted n8n in six steps, from inventory and export through rebuilding, parallel testing and cutover. It produces a complete record of definitions, permissions, execution history and workflow fit, along with a rehearsed rollback path. Effort scales with the number and complexity of workflows, so agree the scope in writing before work starts.
Inventory and export every state machine
The cloud team lists every state machine in each account and region, then calls DescribeStateMachine for each one to retrieve its Amazon States Language definition, role ARN and configuration. Definitions encrypted with KMS also need the exporting identity to hold
kms:Decrypt, so confirm that permission before the run. Save each definition as a versioned JSON file in your own repository, named by ARN. The step is done when every state machine in the inventory has a stored definition that parses as valid JSON and the count matches the account listing.Record IAM roles and service integrations
For each workflow, the cloud team records the IAM role it runs under, the policies attached to that role, and every resource its Task states call, such as Lambda functions, queues, tables and container tasks. It also lists the event sources that start each workflow, including API Gateway, IoT rules and EventBridge rules. This list becomes the credential and network plan for n8n, because AWS permissions do not move with the definition. The step is done when each workflow maps to its integrations and each integration has an owner who confirms whether n8n needs access and from which network.
Save Standard execution history before retention ends
Standard workflows keep execution history for 90 days after an execution completes, so the export must run before that window closes for the oldest runs. The compliance lead and workflow owners decide which fields to keep, such as execution ARN, status, start and stop times and, where policy allows, inputs and outputs, plus how long the archive is retained. Express workflows do not capture execution history at all, so their record lives in CloudWatch Logs, which must be checked and exported separately. The step is done when the archive opens, record counts match the source, and any sensitive payloads sit under your own access controls.
Classify each workflow by fit
The workflow owners and architects assign each state machine a target type based on its runtime and integration pattern. Standard workflows run for up to one year with exactly-once execution, while Express workflows run for up to five minutes with at-least-once execution for asynchronous runs and at-most-once for synchronous runs. Express workflows also do not support the Job-run (.sync) or Callback (.waitForTaskToken) patterns, Distributed Map or activities, so any workflow that depends on them needs redesign before it moves. The workflow type cannot be changed after creation, so this decision is made once per workflow. The step is done when every workflow has a signed-off type, a list of patterns it depends on and a redesign note where needed.
Rebuild workflows and recreate credentials in n8n
AWS definitions are written in Amazon States Language, which n8n does not read, so engineers rebuild each workflow from the inventory. They then recreate each credential against the target systems using a dedicated service account. Before any credential is saved, the security and platform leads agree the encryption key plan: where the key is held, who can read it, how it is backed up and rotated, and how workers receive it. In queue mode, the main instance's key must be shared with every worker and webhook processor, so a missing or mismatched key blocks execution. Confirm the edition as well, since SSO, Git environments and log streaming need the Business or Enterprise plan. The step is done when each rebuilt workflow passes a test run with its own credentials.
Run both side by side before cutover
Each rebuilt workflow runs alongside its Step Functions original on the same inputs, and the outputs are compared against agreed criteria. Where a workflow sends email, charges payments or writes to shared systems, only one side is allowed to act while the other is observed. Cutover then moves triggers one workflow at a time, such as API Gateway routes or EventBridge targets. The rollback plan keeps each state machine and its triggers intact until the owner signs off, with a documented switch back that the team has rehearsed. The step is done when the comparison report is signed off, the rollback has been rehearsed and each trigger change is recorded.
How DeployOpen evaluates, implements and migrates to self-hosted n8n
DeployOpen approaches the move from AWS Step Functions to self-hosted n8n as a fixed-scope engagement, with the scope agreed in writing before work starts. We start by inventorying your state machines, their integrations, and the license and hosting requirements, then build and test n8n inside your own infrastructure and hand over the documentation. Ongoing support, upgrades and continuous testing are available as retainers.
How we scope
- Written scope that lists every Step Functions workflow, trigger and AWS service integration in the migration.
- Classification of each state machine by Standard or Express type, since that type cannot be changed after creation.
- Written review of n8n license terms and edition needs before build starts, so planned use is documented.
How we build
- n8n installed in your infrastructure, using Docker Compose or queue mode with PostgreSQL and Redis where scale requires it.
- Rebuild of each workflow in n8n, with the encryption key shared with every queue mode worker and webhook processor.
- Hardening of SSO, access control, secrets and audit logging, noting SSO and LDAP require a Business or Enterprise license.
How we hand over
- Saved Step Functions definitions, IAM role ARNs and Standard execution history, captured before the 90-day window closes.
- Documentation of every migrated workflow, its triggers, credentials and the AWS services it called.
- Runbook covering upgrades, backups and cutover, including a period where Step Functions and n8n run in parallel.
How we support
- Ongoing support, upgrades and continuous testing available as a retainer after handover.
- Security testing of workflows, webhooks, credentials and admin settings, followed by a retest of fixes.
- Upgrade planning for frequent n8n minor releases, with a check of which edition and license terms apply each time.

