atmos workflow
Use this command to perform sequential execution of atmos
and shell
commands defined as workflow steps.
An Atmos workflow is a series of steps that are run in order to achieve some outcome. Every workflow has a name and is
easily executed from the
command line by calling atmos workflow
. Use workflows to orchestrate any number of commands. Workflows can call
any atmos
subcommand (including
Atmos Custom Commands), shell commands, and have access to the stack configurations.
You can use Atmos Custom Commands in Atmos Workflows, and Atmos Workflows in Atmos Custom Commands
Usage​
Execute the atmos workflow
command like this:
atmos workflow <workflow_name> --file <workflow_file> [options]
Screenshots​
Workflow UI​
Just run atmos workflow
to start an interactive UI to view, search and execute the configured Atmos
workflows:
atmos workflow
-
Use the
right/left
arrow keys to navigate between the "Workflow Manifests", "Workflows" and the selected workflow views -
Use the
up/down
arrow keys (or the mouse wheel) to select a workflow manifest and a workflow to execute -
Use the
/
key to filter/search for the workflow manifests and workflows in the corresponding views -
Press
Enter
to execute the selected workflow from the selected workflow manifest starting with the selected step
Execute a Workflow​
Run Any Workflow Step​
Use the Tab
key to flip the 3rd column view between the selected workflow steps and full workflow definition.
For example:
Examples​
atmos workflow
atmos workflow plan-all-vpc --file networking
atmos workflow apply-all-components -f networking --dry-run
atmos workflow test-1 -f workflow1 --from-step step2
Run atmos workflow --help
to see all the available options
Arguments​
Argument | Description | Required |
---|---|---|
workflow_name | Workflow name | yes |
Flags​
Flag | Description | Alias | Required |
---|---|---|---|
--file | File name where the workflow is defined | -f | yes |
--stack | Atmos stack (if provided, will override stacks defined in the workflow or workflow steps) | -s | no |
--from-step | Start the workflow from the named step | no | |
--dry-run | Dry run. Print information about the executed workflow steps without executing them | no |