[ANN] Terraform Provider for Stonebranch Universal Controller

Hi everyone,

I’m excited to announce the release of a community-built Terraform provider for Stonebranch Universal Controller (v0.8.0, MIT licensed) β€” now live on the Terraform Registry!

:package: Registry: https://registry.terraform.io/providers/OptionMetrics/stonebranch/latest :laptop: GitHub: https://github.com/OptionMetrics/terraform-provider-stonebranch


What it does

Stonebranch UC is an enterprise workload automation platform. This provider lets you manage UC resources as code β€” Tasks, Workflows, Triggers, Credentials, Variables, Scripts, and more β€” bringing GitOps workflows to your job scheduling infrastructure.


Supported resources

  • Tasks: stonebranch_task_unix, stonebranch_task_windows, stonebranch_task_file_transfer, stonebranch_task_sql, stonebranch_task_email, stonebranch_task_workflow

  • Workflows: stonebranch_workflow_vertex, stonebranch_workflow_edge

  • Triggers: stonebranch_trigger_time, stonebranch_trigger_cron

  • Connections: stonebranch_database_connection, stonebranch_email_connection

  • Supporting: stonebranch_script, stonebranch_credential, stonebranch_variable, stonebranch_business_service


Example: a simple Unix task

hcl

resource "stonebranch_task_unix" "hello" {
  name    = "terraform-hello-world"
  summary = "A simple task managed by Terraform"
  command = "echo 'Hello from Terraform!'"
  agent   = "my-linux-agent"
}

Example: a scheduled workflow

hcl

resource "stonebranch_task_workflow" "my_workflow" {
  name = "my-pipeline"
}

resource "stonebranch_workflow_vertex" "step_a" {
  workflow_name = stonebranch_task_workflow.my_workflow.name
  task_name     = stonebranch_task_unix.hello.name
}

resource "stonebranch_trigger_cron" "nightly" {
  name  = "nightly-trigger"
  tasks = [stonebranch_task_workflow.my_workflow.name]
  cron  = "0 2 * * *"
}

Migrating existing resources? Meet sb2tf

If you have existing UC resources you want to bring under Terraform management, the repo also ships sb2tf β€” an experimental CLI tool that exports live UC resources to .tf configuration files. It handles workflows automatically, including their tasks, vertices, and edges.

bash

# Export a workflow and everything in it
sb2tf export task_workflow my_workflow

# Export all tasks matching a pattern
sb2tf export tasks --all --filter "prod-*"

This is an independent, community-driven project β€” not affiliated with or endorsed by Stonebranch GmbH. Feedback, issues, and PRs are very welcome. If you’re a UC user, I’d especially love to hear what resources or features would be most useful to add next.