Terminate Workspaces Inactive for More Than 30 Days

Totalcloud Updated by Totalcloud

There's a template already available in the web app for this use case. This workflow template helps you automate terminating all the Amazon Workspaces that are inactive for more than 30 days.

Please find below the information on how this template works and how you can customize it according to your needs.

How Does This Template Work?

  1. Trigger node initiates the workflow every Monday at 12 am.
  2. Resource node fetches all Workspaces belonging to an AWS account and AWS region.
  3. Resource node's Add-ons feature picks up 'Workspaces Connection Status' of all the fetched Workspaces.
  4. Filter node filters out all the Workspaces inactive for more than 30 days.
  5. Action node terminates all the filtered out Workspaces from previous node.

Steps to Customize this Template

  1. Open the template
  2. Click on Trigger node to find edit from the drop-down options. Add or modify the following details as per your requirement:
    1. Select the day of the week you want to start the workflow from the drop down menu. Example: Monday. If you want the workflow to start every morning, select all the days of the week.
    2. Select the time of the day, of your choice, from the drop down menu. Example: 6:00 for 6am and 21:00 for 9pm.
    3. Click on 'Save'
  3. Click on the 'Edit' option in the Resource node to access the parameters input window. Add or modify the following details as per your requirement:
    1. Retain the AWS Service name 'Workspaces' entry.
    2. Retain the AWS Resource name 'Workspaces' entry.
    If you wish to pick only specific resources or their attributes, use this node's Advanced Filters and Add-ons facility available.
    1. Click on 'Save'
  4. Click on the 'Edit' option in the Filter node to access the parameters input window. Add or modify the following details as per your requirement:
    1. Select Resource to perform action on as the resource node prior to this node.
    2. Retain the Functions selection and the script that looks up for 30 days old Workspaces or more than 30 days old Workspaces.
    3. Add more conditions, if you wish to.
    4. Click on 'Save'
  5. Click on the 'Edit' option in the Action node to access the parameters input window. Add or modify the following details as per your requirement:
    1. Select Resource to perform action on as the Filter node prior to this node.
    2. Retain the AWS Service name 'Workspaces' entry.
    3. Retain the Action entry ' Terminate Workspaces.'
    If you wish to pass additional parameters to the node, use Additional Parameters feature.
    1. Click on 'Save'
  6. Click on the Save icon
  7. Click on the Run icon

How did we do?

Take Snapshot of EBS Volumes Every Three Days

Contact