Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions blog/2025-10-10-n8n-aws-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author: Defang Team
date: 2025-10-10
---

![n8n on AWS](/img/n8n-aws/n8n-aws.png)
<iframe width="560" height="315" src="https://www.youtube.com/embed/hOlNWu2FX1g" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

## Introduction

Expand Down Expand Up @@ -37,11 +37,14 @@ defang version

## Step 2: Clone the n8n Sample on Defang

Clone the n8n sample to your directory:
Create a new directory for your n8n deployment:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Create a new directory for your n8n deployment:
Clone the Defang n8n sample for your own deployment:


```bash
defang new n8n
cd n8n
```

Once you choose the n8n sample, it'll clone the n8n sample for you.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Once you choose the n8n sample, it'll clone the n8n sample for you.
Once the n8n sample has been cloned, open it with your favorite IDE.


## Step 3: Setup Defang for AWS

Expand All @@ -67,15 +70,15 @@ You can easily set this to a random string using `defang config set N8N_ENCRYPTI

Set to true to enable SSL. Set to false to disable SSL.

That be stated it recommend that deploy your N8N instance with SSL enable so it would be a managed version of Postgres.
It is recommended that you deploy your N8N instance with SSL enabled so it would be a managed version of Postgres.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is recommended that you deploy your N8N instance with SSL enabled so it would be a managed version of Postgres.
It is recommended that you deploy your n8n instance with SSL enabled so it would be a managed version of Postgres.


Please enable SSL by using `defang config set DB_POSTGRESDB_SSL_ENABLED=true -Paws`

**DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED**

Set to true to reject unauthorized certificates. Set to false to accept unauthorized certificates. Counterintuitive, but leave this as true to disable SSL.
Set to true to reject unauthorized certificates. Set to false to accept unauthorized certificates. Counterintuitive, but leave this as false to allow managed Postgres to work.

That be stated it recommend that deploy your N8N instance accept unauthorized certificates it would allow managed version of Postgres to work. Please accept unauthorized certificates by using `defang config set DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false -Paws`
It is recommended that you deploy your N8N instance to accept unauthorized certificates so it would allow managed version of Postgres to work. Please accept unauthorized certificates by using `defang config set DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false -Paws`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is recommended that you deploy your N8N instance to accept unauthorized certificates so it would allow managed version of Postgres to work. Please accept unauthorized certificates by using `defang config set DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false -Paws`
It is recommended that you deploy your n8n instance to accept unauthorized certificates so it would allow managed version of Postgres to work. Please accept unauthorized certificates by using `defang config set DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false -Paws`


## Step 5: Deploy with Defang

Expand Down Expand Up @@ -111,7 +114,7 @@ After logging in:

1. Click on "Create Workflow" to start building your automation
2. Add nodes by clicking the "+" button
3. Connect different services and applications
3. Connect various applications and services
4. Test your workflow using the "Execute Workflow" button
5. Activate your workflow when ready

Expand Down