xyops_workflow (Resource)
Manages a native workflow event (type=workflow, plugin=_workflow). This resource already supports workflow graphs; it is separate from xyops_event.
workflow preserves native trigger, event, job, controller, action and limit nodes, their data, connection conditions and extension fields. The provider validates graph structure, not a fixed action/controller vocabulary. Native execution semantics remain xyOps's responsibility. Coordinates and node identifiers are required; dangling connections fail validation on create and update. Loops are not prohibited by this generic resource.
Use params for workflow defaults and fields for declared runtime inputs. Omitted params, fields, notes and icon remain unmanaged; removing a previously configured value clears it. Import hydrates these values. Keep secrets out of parameters and graph JSON: these values are stored in OpenTofu state.
Deployment phases (artifact resolution, plan, apply, verification) are ordinary event/job nodes. Controllers provide decisions, joins and other native orchestration. Actions provide native notifications and suspension; no deployment-only action names are introduced.
Suspension is not a secure approval contract. Native suspend pauses a job; resume is authorised by xyOps job/category/target privileges and may change parameters. Manifest-bound approval, replay protection, immutable revisions and deployment policy belong to the runtime/CDK adapter. Action/limit nodes attach to jobs rather than acting as sequential pipeline stages. Use a native Join controller when all incoming branches must complete. Creating this resource does not execute or resume a workflow.
Schema
Required
title(String)workflow(String)
Optional
actions(String) Native actions as JSON, including notification and suspend actions.params(String) Workflow parameter defaults as a JSON object.fields(String) Workflow input declarations as a JSON array.notes(String) Workflow notes.icon(String) Workflow icon.category(String)enabled(Boolean)limits(String)tags(List of String)triggers(String)
Read-Only
id(String) The ID of this resource.
Import
Import by ID, e.g. tofu import xyops_workflow.<name> <id>.
Data sources
Resources
- xyops_alert (Resource)
- xyops_api_key (Resource)
- xyops_bucket (Resource)
- xyops_category (Resource)
- xyops_channel (Resource)
- xyops_config (Resource)
- xyops_event (Resource)
- xyops_group (Resource)
- xyops_monitor (Resource)
- xyops_plugin (Resource)
- xyops_role (Resource)
- xyops_secret (Resource)
- xyops_server (Resource)
- xyops_tag (Resource)
- xyops_webhook (Resource)
- xyops_workflow (Resource)
Published from docs/ (refs/tags/v0.1.2-dev.9, 575109c770a3). Edit the source in a pull request; wiki edits are replaced on the next publish.