N8N Terraform/OpenTofu Provider

The idea is:

I’m currently working on implementing a missing feature: the ability to deploy n8n workflows using Terraform/OpenTofu.

My use case:

I’m building a Terraform provider to manage n8n resources (workflows, credentials, variables, projects, etc.). The goal is to automate n8n setup and deployment as part of an IaC pipeline.

I think it would be beneficial to add this because:

This feature would allow full integration of n8n into infrastructure-as-code workflows. It would make it possible to version, review, and deploy n8n configurations automatically, improving reproducibility, CI/CD integration, and team collaboration.

Any resources to support this?

The Terraform SDK and OpenTofu SDK are being used to develop the provider. I’ll share the initial implementation soon so the community can test and contribute.

Are you willing to work on this?

Yes, I’m actively developing it. However, to finalize testing, it would be great to have some temporary access or an API plan that allows testing all project/variable endpoints to ensure full coverage.

EDIT [2025-11-18]: :tada: UPDATE - Terraform Provider for n8n is LIVE!

The current release (v1.2.0) is now available and ready for community testing!

What’s included:
:white_check_mark: Full resource support (workflows, credentials, variables, projects, tags, users)
:white_check_mark: Node-based workflow generation (no more giant JSON files!)
:white_check_mark: Tested with n8n Community Edition
:white_check_mark: Complete Terraform/OpenTofu compatibility

What I need from you:
:test_tube: Test it with your n8n instances
:bug: Break things and report issues on GitHub
:light_bulb: Share your use cases and feedback
:magnifying_glass_tilted_left: Help identify edge cases I might have missed

Current limitation:
Test coverage is minimal - I’ve only built basic scenarios. Your real-world
testing is crucial to make this production-ready.

Links:

Let’s build this together! Every issue report and feedback helps improve the
provider for everyone.