Transcript
that you left some cloud resources running a lot longer than you meant to. Whether it's a dev test environment, maybe a demo for your sales team, or temporary classroom environments, this is a pretty common occurrence and something that can cost your organization a lot of money over time. In this video, I'll show you how ephemeral workspaces in TowerFrom Cloud can help you avoid this situation. Here, we have some development workspaces which probably don't need to be up and running all the time. Let's pick one. And here in the workspace settings, I'll go to the destruction and deletion menu. And here we can set up automatic destruction. There are two auto-destroy modes to choose from. You can schedule a one-time destruction at a given date and time, or you can choose to destroy based on inactivity. If there aren't any changes to this workspace in the configured time frame, the resources will be automatically destroyed. I'll set this workspace to automatically destroy after seven days of inactivity. Next, let's set up some notifications. Here on the workspace notification settings, I'll add a new email notification. And under the workspace events, I'll enable the auto-destroy reminder, which will send a notification 12 and 24 hours before the auto-destroy takes place, and also the auto-destroy results notification. Back on the workspace overview page, you can see the upcoming destruction is noted here in the workspace details. Now let's fast forward in time. Once the inactivity period has been reached, the auto-destroy run triggers automatically, and cleans up the resources in this workspace. Since I selected the inactivity-based destruction method, if I recreate these resources through a new apply run, the countdown will start over again. To learn more about how Terraform Cloud can help you control your cloud costs, check out the documentation and tutorials at developer.hashiCorp.com, and get started with your own free trial at hashiCorp.com slash cloud.