Workspace Run Commands
Managing Workspace Runs.
tfx workspace run list
List all Runs for a supplied Workspace.
--max-items defaults to 10, setting this to a higher number will retrieve more items.
Example
$ tfx workspace run list --name tt-workspaceUsing config file: /Users/tstraub/.tfx.hclList Runs for Workspace: tt-workspace╭──────────────────────┬───────────────────────┬──────────────────────┬───────────┬───────────────────┬───────────────────────┬──────────────────────────────────────────────────╮│ ID │ CONFIGURATION VERSION │ STATUS │ PLAN ONLY │ TERRAFORM VERSION │ CREATED │ MESSAGE │├──────────────────────┼───────────────────────┼──────────────────────┼───────────┼───────────────────┼───────────────────────┼──────────────────────────────────────────────────┤│ run-muJzD4EXcYXeb6aY │ cv-q9yhRwv73u6UFJdq │ planned_and_finished │ false │ 1.0.0 │ Sat Aug 20 14:45 2022 │ Run created from the TFx CLI ││ run-xucJV6uRyz1Ntf9u │ cv-q9yhRwv73u6UFJdq │ planned_and_finished │ false │ 1.0.0 │ Sat Aug 20 14:44 2022 │ Triggered via API ││ run-GqEv5WwffMRDQew2 │ cv-VYikVwjgfHNnUYfr │ discarded │ false │ 1.0.0 │ Tue Jun 28 17:46 2022 │ Triggered via API ││ run-uUi5cTRXLBeDdHoB │ cv-LcVa2hMVZg1nAX6R │ discarded │ false │ 1.0.0 │ Tue Jun 28 17:44 2022 │ Triggered via API ││ run-8tJTJPZUv24bwxdj │ cv-q9yhRwv73u6UFJdq │ discarded │ false │ 1.0.0 │ Thu Jul 15 18:04 2021 │ Queued manually to destroy infrastructure ││ run-HmJRanghKXFCoRpe │ cv-pn7T5L8J58FV5PSZ │ applied │ false │ 0.15.3 │ Thu Jul 15 18:03 2021 │ Queued manually via the Terraform Enterprise API ││ run-UjgDJwAeinyzzxAX │ cv-p8XXa5rcph3W1MoF │ applied │ false │ 0.15.3 │ Thu Jul 15 18:02 2021 │ Queued manually to destroy infrastructure ││ run-yVXxdJ8vav52UwpH │ cv-BGP2Q8WwAM9RfzcN │ planned_and_finished │ false │ 0.15.3 │ Fri Jun 25 12:31 2021 │ Queued manually via the Terraform Enterprise API │╰──────────────────────┴───────────────────────┴──────────────────────┴───────────┴───────────────────┴───────────────────────┴──────────────────────────────────────────────────╯tfx workspace run create
Create a Run for a supplied Workspace.
Latest Configuration Version Example
$ tfx workspace run create --name tt-workspaceUsing config file: /Users/tstraub/.tfx.hclCreate Run for Workspace: tt-workspaceThe run will be created using the workspace's latest configuration versionRun CreatedID: run-RZntt2QgVmD5w9xaConfiguration Version: cv-e83GeSpjVKXuUGmUTerraform Version: 1.0.0Link: https://tfe.rocks/app/firefly/workspaces/tt-workspace/runs/run-RZntt2QgVmD5w9xaSpecific Configuration Version Example
$ tfx workspace run create --name tfx-test --id cv-q9yhRwv73u6UFJdqUsing config file: /Users/tstraub/.tfx.hclCreate Run for Workspace: tfx-testConfiguration Version Provided: cv-q9yhRwv73u6UFJdqRun CreatedID: run-Q7cVGhK77dukA41GConfiguration Version: cv-q9yhRwv73u6UFJdqTerraform Version: 1.0.0Link: https://tfe.rocks/app/firefly/workspaces/tfx-test/runs/run-Q7cVGhK77dukA41GMessage Example
$ tfx workspace run create --name tfx-test --message "Run created from the TFx CLI"Using config file: /Users/tstraub/.tfx.hclCreate Run for Workspace: tfx-testThe run will be created using the workspace's latest configuration versionRun CreatedID: run-muJzD4EXcYXeb6aYConfiguration Version: cv-q9yhRwv73u6UFJdqTerraform Version: 1.0.0Link: https://tfe.rocks/app/firefly/workspaces/tfx-test/runs/run-muJzD4EXcYXeb6aYtfx workspace run show
Show Run details for a supplied Run.
Example
$ tfx workspace run show -i run-GqEv5WwffMRDQew2Using config file: /Users/tstraub/.tfx.hclShow Run for Workspace: run-GqEv5WwffMRDQew2ID: run-GqEv5WwffMRDQew2Configuration Version: cv-VYikVwjgfHNnUYfrStatus: discardedMessage: Triggered via APITerraform Version: 1.0.0Created: Tue Jun 28 17:46 2022tfx workspace run discard
Discard a supplied Run.
Example
$ tfx workspace run discard --id run-oB7uUW4Qgk9HQMCUUsing config file: /Users/tstraub/.tfx.hclDiscarded run id: run-oB7uUW4Qgk9HQMCUtfx workspace run cancel
Cancel the latest run for a workspace.
Example
$ tfx workspace run cancel --name tt-workspaceUsing config file: /Users/tstraub/.tfx.hclCancel latest run for Workspace: tt-workspaceFound latest Run: run-v3jHAYot4AYb4mynCancelled run id: run-v3jHAYot4AYb4myn