This small Terraform prototype deploys n8n as an ECS Fargate service with EFS-backed storage and an Application Load Balancer. It's deliberately lightweight so you can run it standalone for testing or integrate its ECS/Target Group pieces into a larger infrastructure such as the cortex project.
- ECS cluster and Fargate service running the official
n8nio/n8nimage - ECS Task definition with an EFS-backed volume and required IAM roles
- AWS EFS file system, access point and mount targets
- Application Load Balancer + Target Group + Listener (HTTP)
- Security group suitable for ALB <> ECS <> EFS communication
- From the
testing/n8n-prototypefolder run:
terraform init
terraform validate
terraform apply -auto-approve- After apply completes, the ALB DNS is available as the
n8n_urloutput.
Note: By default this prototype uses the default VPC and will try to create resources in that VPC.
Set variables via CLI or a tfvars file, e.g. terraform apply -var='assign_public_ip=true'.
n8n_url- ALB DNS name for accessing n8n (prependhttp://orhttps://as appropriate).