Truth in IT
    • Sign In
    • Register
        • Videos
        • Channels
        • Pages
        • Galleries
        • News
        • Events
        • All
Truth in IT Truth in IT
  • Data Management ▼
    • Converged Infrastructure
    • DevOps
    • Networking
    • Storage
    • Virtualization
  • Cybersecurity ▼
    • Application Security
    • Backup & Recovery
    • Data Security
    • Identity & Access Management (IAM)
    • Zero Trust
    • Compliance & GRC
    • Endpoint Security
  • Cloud ▼
    • Hybrid Cloud
    • Private Cloud
    • Public Cloud
  • Webinar Library
  • TiPs
  • DRAW

Auto-Destroy Cloud Resources with Terraform Ephemeral Workspaces

HashiCorp
04/09/2026
0 (0%)
Share
  • Comments
  • Download
  • Transcript
Report Like Favorite
  • Share/Embed
  • Email
Link
Embed

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.

TL;DR

  • Terraform Cloud ephemeral workspaces automatically destroy temporary cloud resources to prevent cost accumulation from forgotten infrastructure in dev, test, demo, or training environments.
  • Two auto-destroy modes are available: schedule one-time destruction at a specific date/time, or configure inactivity-based destruction that triggers after a defined period without workspace changes.
  • Email notifications can be configured to send alerts 12 and 24 hours before auto-destroy runs, with inactivity-based destruction resetting the countdown when resources are recreated through new apply runs.

Summary

This demonstration walks through Terraform Cloud's ephemeral workspaces feature, designed to address the common problem of forgotten cloud resources that accumulate costs and security risks. The video shows how to configure automatic resource destruction using two methods: scheduled one-time deletion at a specific date and time, or inactivity-based destruction that triggers after a defined period without workspace changes. The presenter demonstrates setting up a seven-day inactivity threshold for a development workspace, configuring email notifications to alert users 12 and 24 hours before destruction, and shows the complete lifecycle from configuration through automatic cleanup. The feature eliminates manual cleanup tasks while helping organizations optimize cloud spending and improve developer productivity by ensuring temporary environments for development, testing, demos, and training don't persist beyond their useful life.

Chapters

0:00 - Introduction to Cloud Waste Problem
0:30 - Enable Auto-Destruction Settings
0:50 - Auto-Destroy Mode Options
1:17 - Configure Email Notifications
1:50 - View Auto-Destroy Status
2:08 - Auto-Destroy Execution Results
2:30 - Conclusion and Resources

Key Quotes

0:00 "If you're like me, you've probably felt the pain of realizing, way too late, that you left some cloud resources running a lot longer than you meant to."
0:18 "... this is a pretty common occurrence and something that can cost your organization a lot of money over time."
1:02 "If there aren't any changes to this workspace in the configured time frame, the resources will be automatically destroyed."

Categories:
  • » Cybersecurity » Application Security
  • » Data Management » DevOps
  • » Cybersecurity » Cloud Security
  • » Data Protection
Channels:
News:
Events:
Tags:
  • Cloud Security
  • DevSecOps
  • Demo
  • How-To
  • Getting Started
  • Cloud Cost Optimization
  • Infrastructure as Code
  • Terraform Cloud
  • Ephemeral Workspaces
  • Automated Resource Cleanup
  • DevOps Automation
  • Cloud Waste Management
  • Workspace Lifecycle Management
Show more Show less

Browse videos

  • Related
  • Featured
  • By date
  • Most viewed
  • Top rated
  •  

              Video's comments: Auto-Destroy Cloud Resources with Terraform Ephemeral Workspaces

              Industry Events (Sponsor Hosted)

              • Sep
                17

                Bridging the SaaS Protection Gap: Preventing Data Loss and AI Missteps

                09/17/202610:00 AM ET
                • Sep
                  17

                  Unveiling the AI-Driven Underworld of Automation's Rapid Rise

                  09/17/202601:00 PM ET
                  • Sep
                    23

                    Invisible Data: Understanding What You Can’t Safeguard

                    09/23/202601:00 PM ET
                    More events

                    Upcoming Webinar Calendar

                    • 09/17/2026
                      10:00 AM
                      09/17/2026
                      Bridging the SaaS Protection Gap: Preventing Data Loss and AI Missteps
                      https://www.truthinit.com/index.php/channel/2119/bridging-the-saas-protection-gap-preventing-data-loss-and-ai-missteps/
                    • 09/17/2026
                      01:00 PM
                      09/17/2026
                      Unveiling the AI-Driven Underworld of Automation's Rapid Rise
                      https://www.truthinit.com/index.php/channel/2108/unveiling-the-ai-driven-underworld-of-automations-rapid-rise/
                    • 09/23/2026
                      01:00 PM
                      09/23/2026
                      Invisible Data: Understanding What You Can’t Safeguard
                      https://www.truthinit.com/index.php/channel/2087/invisible-data-understanding-what-you-cant-safeguard/
                    • 09/29/2026
                      12:00 PM
                      09/29/2026
                      Embracing AI Adoption While Ensuring Robust Security Measures
                      https://www.truthinit.com/index.php/channel/2092/embracing-ai-adoption-while-ensuring-robust-security-measures/
                    • 09/30/2026
                      04:00 AM
                      09/30/2026
                      AI Command Center: Optimizing Visibility and Control in Your Operations
                      https://www.truthinit.com/index.php/channel/2024/ai-command-center-optimizing-visibility-and-control-in-your-operations/
                    • 11/19/2026
                      01:00 PM
                      11/19/2026
                      360View: Govern, Secure & Recover Your Microsoft 365 Environment
                      https://www.truthinit.com/index.php/channel/2076/360view-govern-secure-recover-your-microsoft-365-environment/
                    Truth in IT
                    • Sponsor
                    • About Us
                    • Terms of Service
                    • Privacy Policy
                    • Contact Us
                    • Preference Management
                    Desktop version
                    Standard version