Automate Common Workflows
You've already deployed the full backend. This chapter and the ones that follow are optional — reach for them when you want to package the commands your operators run every day.
Atmos workflows combine multiple steps into a single executable unit of work. Since atmos terraform deploy --all and
atmos terraform destroy --all already handle graph-backed deploy and teardown, this workflow focuses on orientation:
what stacks exist, which component instances are in the selected stack, how to validate the manifests, and which commands
an operator should run next.
See Atmos Workflows for the full reference. Workflows and custom commands compose: you can call a custom command from a workflow, and run a workflow from a custom command.
Configure the workflows directory
In atmos.yaml, configure the workflow base path:
workflows:
base_path: "stacks/workflows"
Add workflow manifests in the stacks/workflows folder:
Add an operator orientation workflow
The workflow uses newer step types:
stageprints progress markers for the operator.shellruns a command exactly as written.spinkeeps a short status step compact while it runs.markdownadds a short validation note without executing the validation command during a dry run.tableshows the commands operators use next.toastfinishes with a clear status message.
Run the workflow
Run the workflow for a stack:
atmos workflow operator/orient -f backend -s plat-ue2-dev
Use --dry-run to preview the steps without executing them:
For single-component Terraform commands, you can omit the component or stack in an interactive terminal and Atmos will prompt you:
atmos terraform plan app-config -s plat-ue2-dev
atmos terraform plan
For bulk workflows, keep using explicit selectors such as --all, --components, or --query.