Overview
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
The Nomatron Terraform provider gives you a declarative way to manage supported Nomatron resources.
Instead of creating and updating resources manually through the GUI or scripting against the API, you can define them in Terraform configuration and manage them through normal plan and apply workflows.
Why Use Terraform With Nomatron
Terraform is a strong fit for Nomatron when you want:
- repeatable onboarding for new organizations, users, groups, and service accounts;
- reviewable RBAC and access-control changes;
- consistent cluster, app, environment, and variable definitions across environments;
- a Git-driven operating model with versioned configuration; and
- a safer way to rebuild or extend a Nomatron installation over time.
This is especially valuable for platform teams that already manage surrounding infrastructure declaratively.
What The Provider Manages
The provider supports managed resources, data sources, ephemeral token resources, and selected imperative actions.
At the time of writing, the resource set includes:
- organizations and organization members;
- users, groups, and group members;
- roles and role assignments;
- service accounts;
- Nomad clusters;
- GitHub App integrations;
- applications, jobs, environments, and variables; and
- network agents.
It also supports:
- data sources for looking up existing resources;
- ephemeral token resources for service accounts and network agents; and
- actions such as speculative planning and Nomad job import.
Terraform Versus The GUI, CLI, And API
Use the Terraform provider when the goal is long-lived, reviewable configuration.
Use the other interfaces when the goal is different:
- use the GUI for interactive review, troubleshooting, and lower-frequency administration;
- use the CLI for terminal-driven operations and quick ad hoc changes;
- use the API for custom integrations and product-to-product automation; and
- use Terraform when you want declarative ownership over supported Nomatron resources.
Many teams use all four:
- Terraform for stable resource definitions;
- the GUI for validation and investigation;
- the CLI for quick operator actions; and
- the API where deeper integration is needed.
Good Fits For Terraform
The provider is most useful for resources that benefit from declarative ownership.
Typical examples include:
- platform organizations;
- onboarding users and groups;
- custom RBAC roles and assignments;
- cluster registrations;
- GitHub App integrations;
- baseline applications, jobs, and environments; and
- shared and scoped variables.
Weaker Fits For Terraform
Terraform is not always the best tool for every Nomatron operation.
Be cautious about using it for:
- one-off troubleshooting actions;
- highly interactive approval workflows;
- temporary exploratory changes made during debugging; and
- operational processes that are fundamentally event-driven rather than declarative.
Next Steps
If you want to use the provider in practice, continue with: