Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account and choose a project. Review the upstream deployment instructions for the release you plan to pin. This guide covers private company use in your own AWS account. n8n is source-available under its Sustainable Use License.Data dependencies
PostgreSQL for this company deployment. Redis is needed only if you choose queue mode. See SQL databases for private writer access and connection details.Deployment order
- Create a private PostgreSQL database in your Spring Winter project. Wait for the writer. Open Connect and prepare an application database and role.
- Deploy docker.n8n.io/n8nio/n8n as a web server on port 5678. Set
DB_TYPE=postgresdbandDB_POSTGRESDB_HOST,DB_POSTGRESDB_PORT,DB_POSTGRESDB_DATABASE,DB_POSTGRESDB_USERandDB_POSTGRESDB_PASSWORD. Use database TLS settings appropriate for your deployment. - Set a stable
N8N_ENCRYPTION_KEY, the HTTPSWEBHOOK_URLandN8N_PROXY_HOPSfor the actual proxy chain. Restrict editor access to the company. If workflows must receive external webhooks, expose only the necessary routes through a suitable proxy. If you need file-backed features, verify their durable storage before use. - Start the main instance and let it migrate the database. In queue mode, provision Redis before starting the main instance and start workers after migrations. Use the same database and encryption key for all n8n processes.