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

              XStreaminars (watch here)

              • Jul
                28

                Illumio + Netskope: Zero Trust in the Age of AI Autonomy

                07/28/202601:00 PM ET
                • Jul
                  29

                  Ask Your Cloud Anything: Unlocking Governance Silos in your Environments

                  07/29/202601:00 PM ET
                  More events

                  Industry Events (watch there)

                  • Jul
                    22

                    Insights from Attackers During the FIFA World Cup: A HUMAN Dialogue

                    07/22/202601:00 PM ET
                    • Aug
                      19

                      Becoming Agent Ready: Insights from Cyera's Expertise

                      08/19/202612:00 PM ET
                      More events

                      Upcoming Webinar Calendar

                      • 07/22/2026
                        06:30 AM
                        07/22/2026
                        Delving into the Essentials of the DPDP Framework
                        https://www.truthinit.com/index.php/channel/2000/delving-into-the-essentials-of-the-dpdp-framework/
                      • 07/22/2026
                        01:00 PM
                        07/22/2026
                        Insights from Attackers During the FIFA World Cup: A HUMAN Dialogue
                        https://www.truthinit.com/index.php/channel/2029/insights-from-attackers-during-the-fifa-world-cup-a-human-dialogue/
                      • 07/28/2026
                        01:00 PM
                        07/28/2026
                        Illumio + Netskope: Zero Trust in the Age of AI Autonomy
                        https://www.truthinit.com/index.php/channel/2031/illumio-netskope-zero-trust-in-the-age-of-ai-autonomy/
                      • 07/29/2026
                        04:00 AM
                        07/29/2026
                        Real-Time Strategies for Safeguarding Against Prompt Injections
                        https://www.truthinit.com/index.php/channel/1968/real-time-strategies-for-safeguarding-against-prompt-injections/
                      • 07/29/2026
                        01:00 PM
                        07/29/2026
                        Ask Your Cloud Anything: Unlocking Governance Silos in your Environments
                        https://www.truthinit.com/index.php/channel/2048/ask-your-cloud-anything-unlocking-governance-silos-in-your-environments/
                      • 08/19/2026
                        12:00 PM
                        08/19/2026
                        Becoming Agent Ready: Insights from Cyera's Expertise
                        https://www.truthinit.com/index.php/channel/2036/becoming-agent-ready-insights-from-cyeras-expertise/
                      • 09/02/2026
                        12:00 PM
                        09/02/2026
                        Unified Data Security in Action: Uncover, Analyze, and Resolve Threats
                        https://www.truthinit.com/index.php/channel/2045/unified-data-security-in-action-uncover-analyze-and-resolve-threats/
                      • 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/
                      Truth in IT
                      • Sponsor
                      • About Us
                      • Terms of Service
                      • Privacy Policy
                      • Contact Us
                      • Preference Management
                      Desktop version
                      Standard version