n8n for infrastructure people
n8n is a workflow automation tool. This page is for two readers: someone who has never used n8n, and someone who has to size the infrastructure for it. It explains what n8n is, what it asks of the machines under it, which ways exist to run it on AWS, and how a workflow can call other AWS services such as Amazon Bedrock.
What n8n is
You build automations in a browser editor by connecting boxes on a canvas. The vocabulary is small.
- A workflow is a graph of steps that n8n runs.
- A node is one step: call an API, read a file, run code, ask a language model.
- A trigger is the node that starts a workflow: a webhook call, a schedule, a message from another system.
- A credential is a stored secret, such as an API key or a database password, that a node uses. n8n encrypts credentials with an encryption key.
- An execution is one run of a workflow, with its data and its result. n8n keeps a history of executions.
- The editor is the web interface where people build workflows and look at executions.
Everything is stored in a database. The editor, the API and the triggers live in the main process.
What people use it for
- Internal automation. Create a ticket when a form is submitted, sync users between two systems, send a weekly report.
- Webhooks from SaaS tools. A payment, a CRM event or a chat message calls a URL of n8n, and a workflow reacts.
- Scheduled data syncs. Copy data from an API to a database or a bucket every hour.
- AI agents and retrieval. A workflow gives a language model tools, memory and documents, for example with Amazon Bedrock models.
The first three need little more than a small deployment. A steady load, long executions or many webhooks call for workers and a queue. See the guide to scale workers.
What n8n needs from the infrastructure
| Need | What it means | Where to read more |
|---|---|---|
| Processes and memory | One main process, plus optional webhook processors and workers. Each needs at least 1 GiB of memory with its task runner, or it is killed (finding T22) | Concepts |
| PostgreSQL | Required for anything beyond single. SQLite works for one process, on a file system that survives restarts | Database options |
| Redis for queue mode | Main and workers exchange jobs through a Redis-compatible queue | Queue options |
| File or S3 storage | Binary data (files that flow through workflows) is kept in the database, on a file system or in S3. S3 needs a paid edition | Binary and execution data |
| An encryption key | Without the key that encrypted them, n8n cannot read its stored credentials. Keep it, and back it up | Back up and restore |
| Outbound internet | Nodes call external APIs, and a paid license is checked daily against n8n's license server | License rules |
| Inbound HTTPS | Webhooks need a public HTTPS URL that n8n knows about | Custom domain |
Ways to run it on AWS
The n8n roles are the same everywhere. What changes is the AWS service that runs them.
- One Fargate task. The smallest option: main in one container, a database and a bucket or file system. About $4 a month for
nano. - ECS with workers. Main plus workers that scale on the size of the queue, on Fargate or on EC2 hosts.
- Split. Webhook processors in front, so that a burst of webhooks does not slow the editor.
- Multi-main. Several main processes for high availability, with the Enterprise edition.
- EKS. The official Helm chart on a new or an existing Kubernetes cluster.
The shapes page lists eleven complete files from smallest to largest, with their cost.
How n8n reaches other AWS services
A node that calls AWS needs a credential. n8n has two AWS credential types. Both are described on n8n's AWS credentials page, which was read on 2026-11-30.
| Credential type | How it authenticates | Uses the identity of the container |
|---|---|---|
| AWS (IAM) | An access key ID and a secret access key that you store in n8n | No |
| AWS (Assume Role) | n8n calls AWS STS AssumeRole for a role that you name by ARN | Yes, as the starting identity, with "Use System Credentials" |
Both types serve the same nodes, among them AWS Bedrock Chat Model, Embeddings AWS Bedrock, S3, SQS, SNS, Lambda, SES, DynamoDB and Textract. Nodes of other AI providers use their own API keys, not an AWS credential.
With "Use System Credentials" on the Assume Role credential, n8n reads the identity of its container and uses it only to assume the role you name. It does not call AWS with the container role directly. n8n looks for that identity in this order: environment variables, EKS IAM Roles for Service Accounts, EKS Pod Identity, the ECS or Fargate task role, then the EC2 instance profile. Three conditions apply:
- An administrator sets
N8N_AWS_SYSTEM_CREDENTIALS_ACCESS_ENABLED=trueon every n8n process. It is off by default. - The target role trusts the container role, and the container role may call
sts:AssumeRoleon it. The role may be the container role itself, with its own ARN in its trust policy. - Any n8n user who can create such a credential can use the identity of the server. n8n advises it only for single-tenant instances where you trust everyone who can create credentials.
What the tool grants
On ECS, the task role gets the bucket, the KMS key and EFS when they exist, the log group of the metrics agent, and sts:AssumeRole on the workflow role. The tool creates the role <name>-workflows with no permission, sets the variable above, and prints the role ARN. You attach the policies that open each service. The steps are in reach AWS services from workflows.
On EKS the service account gets the S3 grants through Pod Identity, and the workflow role is not synthesized yet (C1). A workflow there reaches AWS services with the AWS (IAM) credential and an access key that you create and store in n8n.
One example per service
| Service | A workflow does | n8n node | IAM actions to grant |
|---|---|---|---|
| Amazon Bedrock | An AI agent answers with a model | AWS Bedrock Chat Model, Embeddings AWS Bedrock | bedrock:InvokeModel, bedrock:InvokeModelWithResponseStream, and bedrock:ListFoundationModels to list models |
| Amazon S3 | Stores a generated report, reads an uploaded file | AWS S3 | s3:GetObject, s3:PutObject, s3:ListBucket on the bucket |
| Amazon RDS | Reads or writes business data | Postgres or MySQL node, with host and password | None: the node connects with a database user, so open the database security group to the n8n tasks |
| Amazon SQS | Sends a message to a queue | AWS SQS | sqs:SendMessage |
| Amazon SNS | Publishes a notification | AWS SNS | sns:Publish |
| AWS Secrets Manager | Holds a secret that a workflow needs | No node on the credentials page. The n8n external secrets feature (Enterprise) reads from it | secretsmanager:GetSecretValue for the container |
For Bedrock, the model must also be available in the region of the credential, and you must have requested access to it in the Bedrock console. The tool does not do this.
Workflows reach these services through the NAT gateway, or through the public address of the tasks when the VPC has no NAT. A VPC interface endpoint is an option that costs about $7 a month per availability zone.