Quick and dirty setup of n8n Community Edition for evaluation and demonstration purposes.
Intended for evaluation purposes or simple testing from your cloud provider of choosing.
- Ubuntu instance (AWS EC2, DigitalOcean Droplet, or GCP Compute Engine)
- Docker runtime
- n8n CE container running on port 5678
- n8n tunnel mode enabled for quick access
- Terraform >= 1.13.0
- Either one of these:
- AWS credentials configured
- DigitalOcean Personal Access Token token
- GCP authenticated
cd terraform/aws
terraform init
terraform apply -auto-approveUse AWS Session Manager to connect to your EC2
cd terraform/do
terraform init
terraform apply -auto-approve -var="do_token=<your_do_token>"Use Digital Ocean Console to connect to your Droplet
cd terraform/gcp
terraform init
terraform apply -auto-approve -var="project_id=<your_project_id>Use gcloud to connect to your instance and check logs:
gcloud compute ssh n8n-server --zone=asia-southeast1-a --project=<your_project_id>If you encounter organization policy errors regarding external IPs, reset the policy:
gcloud org-policies reset constraints/compute.vmExternalIpAccess --project=<your_project_id>The deployment automatically:
- Installs Docker on the instance
- Pulls the n8n Docker image
- Starts n8n with persistent volume storage
- Configures n8n with tunnel mode for external access
Setup logs are available at /var/log/n8n-setup.log on the instance.
You can follow the setup log by running this:
tail -f /var/log/n8n-setup.logAnd check the docker status with to get the tunnel url:
docker logs n8n- This is not production-ready
- No SSL/TLS configuration included
- Uses n8n tunnel mode (not suitable for production)
- Default timezone set to
Asia/Singapore
This cleanup all infrastructure resources
cd terraform/<your_cloud_provider>
terraform destroy -auto-approve