Skip to main content

Actions and Workflows


Overview

Managing cloud resources efficiently is critical for modern organizations. Leaving resources running when not in use can lead to significant waste and security risks. Torque's Actions and Workflows provide automated solutions to optimize your cloud infrastructure.

Why Resource Management Matters

💰 Cost Optimization

  • Prevent unnecessary expenditure with pay-as-you-go billing models
  • Reduce cloud spend by up to 60% through automated resource scheduling
  • Eliminate forgotten resources that continue accruing costs

🌱 Environmental Sustainability

  • Reduce energy consumption and carbon footprint
  • Support corporate sustainability goals
  • Minimize unnecessary data center resource usage

🔒 Security Enhancement

  • Reduce attack surface by stopping unused resources
  • Mitigate risks from unauthorized access to idle systems
  • Implement security-by-default practices

⚡ Performance Improvement

  • Free up valuable computing resources for critical workloads
  • Improve overall system performance and responsiveness
  • Optimize resource allocation across your infrastructure

Torque's Solution

Torque provides comprehensive resource management through two complementary approaches:

  • 🎯 Actions - Execute immediate operations on specific resources (power on/off, restart, connect)
  • ⏰ Workflows - Schedule automated operations across resource groups (daily shutdowns, weekend scaling)

This combination enables both reactive management and proactive automation, ensuring your infrastructure runs efficiently while reducing operational overhead.

Actions

Torque provides a built-in set of actions you can run on specific cloud resources in the environment to optimize resource usage and achieve cost savings, security improvements, and performance benefits.

Workflows

Workflows take actions to the next level by providing scheduled automations that run on all resources of the same type in an environment.

Common Workflow Examples

  • Daily Shutdowns: Power-off all VMs in the environment every day at 6PM
  • Weekend Scaling: Pause (scale to minimum) development Kubernetes clusters every weekend
  • Cost Optimization: Automatically stop database instances during non-business hours
  • Maintenance Windows: Schedule restarts during low-usage periods
info

Learn More About Workflows To learn how to create and manage workflows in your Torque account, visit our Workflows Overview guide.

How to Execute Actions and Workflows

Running Actions on Individual Resources

  1. Switch to Resources View in your environment
  1. Click a resource tile to select the resource you want to manage

  2. Hover over the relevant action and click Run

  3. Click the action's name to monitor its progress and view execution details

Alternative: Running Actions from Orchestration View

note

Grain-Level Actions You can also execute actions from the orchestration (grain) view by:

  1. Clicking on the grain's options menu (three dots)
  2. Selecting the action you want to run

Built-in Actions

Learn how to create scheduled automations with built-in actions.

Supported Actions by Resource Type

Torque provides the following built-in actions that you can run on specific cloud resources:

Virtual Machines:

  • Power On - Start instances
  • Power Off - Stop instances
  • Restart - Reboot instances
  • Connect - Create RDP/SSH connections directly from Torque UI

Database Servers:

  • Stop - Temporarily stop database instances
  • Start - Start stopped database instances
  • Delete - Remove database instances

Kubernetes Clusters:

  • Pause - Scale down to minimum resources
  • Resume - Scale back to original capacity

Debugging Actions

For verbose output to debug actions, add this parameter at the account level:

SYSTEM_ACTIONS_VERBOSE_MODE=true

Detailed Action Support Matrix

For technical implementation details, refer to the comprehensive action support matrix below:

Resource TypeAction NameCloudGrain TechnologyResource TypeDescriptionLimitations
Virtual MachinesPower On VMAWSTerraformaws_instanceStart an EC2 instance-
CloudFormationAWS::EC2::Instance
AzureTerraformazurerm_virtual_machineStart an Azure VM-
Power Off VMAWSTerraformaws_instanceStop an EC2 instance-
CloudFormationAWS::EC2::Instance
AzureTerraformazurerm_virtual_machineStop and Deallocate an Azure VM-
Restart VMAWSTerraformaws_instanceRestart an EC2 instance-
CloudFormationAWS::EC2::Instance
AzureTerraformazurerm_virtual_machineRestart an Azure VM-
Connect to VMAWSTerraformaws_instanceCreates RDP/SSH connection directly from Torque UI-
AWSCloudFormationAWS::EC2::Instance
AzureTerraformazurerm_virtual_machine
DatabasesStop RDS InstanceAWSTerraformaws_db_instanceTemporarily stop an RDS instanceRDS restarts after 7 days if not repeated
CloudFormationComing Soon--
Start RDS InstanceAWSTerraformaws_db_instanceStart a stopped RDS instance-
CloudFormationComing Soon--
Delete RDS InstanceAWSTerraformaws_db_instanceDelete an RDS instance-
Stop Database ServerAzureTerraformMultiple types:
azurerm_mysql_server
azurerm_mysql_flexible_server
azurerm_mariadb_server
azurerm_postgresql_flexible_server
Temporarily stop database serverDB restarts after engine-specific period if not repeated
Start Database ServerAzureTerraformMultiple types:
azurerm_mysql_server
azurerm_mysql_flexible_server
azurerm_mariadb_server
azurerm_postgresql_flexible_server
Start a stopped database server-
Delete DatabaseAzureTerraformMultiple types:
azurerm_mysql_database
azurerm_mariadb_database
azurerm_postgresql_database
azurerm_mssql_database
azurerm_mysql_flexible_database
azurerm_postgresql_flexible_server_database
Delete a database-
Kubernetes ClustersPauseAzure (AKS)Terraformazurerm_kubernetes_clusterReduce node pool agents to 1 VM-
AWS (EKS)TerraformComing Soon--
ResumeAzure (AKS)Terraformazurerm_kubernetes_clusterRestore original node pool size-
AWS (EKS)TerraformComing Soon--