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
  • Viewing Certificates

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

              Upcoming Events

              • Dec
                08

                AI Shopping Trends, Emerging Threats, and Future Insights Beyond Black Friday

                12/08/202610:00 AM ET
                • Dec
                  09

                  Beyond Continuous Compliance: Getting Ready to Detect, Recalculate, and Adapt

                  12/09/202601:00 PM ET
                  • Dec
                    09

                    Strategies for Safeguarding Endpoints in the Agentic Era with Cyera

                    12/09/202602:00 PM ET
                    • Dec
                      10

                      Retain Control: On-Prem Solutions for Avoiding Unwanted Cloud Migration

                      12/10/202601:00 PM ET
                      • Dec
                        15

                        Insights from BADBOX 3.0: Key Takeaways from Major Ad Fraud Case

                        12/15/202611:00 AM ET
                        • Jan
                          19

                          Skylight in Aktion: Gewährleisten Sie KI-Schutz über den Benutzer hinaus

                          01/19/202704:00 AM ET
                          • Jan
                            19

                            HUMAN Dialogue: Embracing the Rise of the Empowered AI Consumer.

                            01/19/202702:00 PM ET
                            • Mar
                              18

                              Securing Access for People, Partners and AI Agents

                              03/18/202701:00 PM ET
                              • Jun
                                17

                                Stop the Leak: Data Loss Prevention for the AI Era

                                06/17/202701:00 PM ET
                                • Aug
                                  19

                                  Who Has Access to What...and Should They?

                                  08/19/202701:00 PM ET
                                  More events

                                  Upcoming Webinar Calendar

                                  • 12/08/2026
                                    10:00 AM
                                    12/08/2026
                                    AI Shopping Trends, Emerging Threats, and Future Insights Beyond Black Friday
                                    https://www.truthinit.com/index.php/channel/2282/ai-shopping-trends-emerging-threats-and-future-insights-beyond-black-friday/
                                  • 12/09/2026
                                    01:00 PM
                                    12/09/2026
                                    Beyond Continuous Compliance: Getting Ready to Detect, Recalculate, and Adapt
                                    https://www.truthinit.com/index.php/channel/2250/beyond-continuous-compliance-getting-ready-to-detect-recalculate-and-adapt/
                                  • 12/09/2026
                                    02:00 PM
                                    12/09/2026
                                    Strategies for Safeguarding Endpoints in the Agentic Era with Cyera
                                    https://www.truthinit.com/index.php/channel/2256/strategies-for-safeguarding-endpoints-in-the-agentic-era-with-cyera/
                                  • 12/10/2026
                                    01:00 PM
                                    12/10/2026
                                    Retain Control: On-Prem Solutions for Avoiding Unwanted Cloud Migration
                                    https://www.truthinit.com/index.php/channel/2267/retain-control-on-prem-solutions-for-avoiding-unwanted-cloud-migration/
                                  • 12/15/2026
                                    11:00 AM
                                    12/15/2026
                                    Insights from BADBOX 3.0: Key Takeaways from Major Ad Fraud Case
                                    https://www.truthinit.com/index.php/channel/2284/insights-from-badbox-3-0-key-takeaways-from-major-ad-fraud-case/
                                  • 01/19/2027
                                    04:00 AM
                                    01/19/2027
                                    Skylight in Aktion: Gewährleisten Sie KI-Schutz über den Benutzer hinaus
                                    https://www.truthinit.com/index.php/channel/2176/skylight-in-aktion-gewährleisten-sie-ki-schutz-über-den-benutzer-hinaus/
                                  • 01/19/2027
                                    02:00 PM
                                    01/19/2027
                                    HUMAN Dialogue: Embracing the Rise of the Empowered AI Consumer.
                                    https://www.truthinit.com/index.php/channel/2160/human-dialogue-embracing-the-rise-of-the-empowered-ai-consumer/
                                  • 03/18/2027
                                    01:00 PM
                                    03/18/2027
                                    Securing Access for People, Partners and AI Agents
                                    https://www.truthinit.com/index.php/channel/2251/securing-access-for-people-partners-and-ai-agents/
                                  • 06/17/2027
                                    01:00 PM
                                    06/17/2027
                                    Stop the Leak: Data Loss Prevention for the AI Era
                                    https://www.truthinit.com/index.php/channel/955/360view-stop-the-leak-data-loss-prevention-for-the-ai-era/
                                  • 08/19/2027
                                    01:00 PM
                                    08/19/2027
                                    Who Has Access to What...and Should They?
                                    https://www.truthinit.com/index.php/channel/2252/who-has-access-to-what-and-should-they/
                                  • 10/21/2027
                                    01:00 PM
                                    10/21/2027
                                    After VMware: Building the Private Cloud You Actually Want
                                    https://www.truthinit.com/index.php/channel/2253/after-vmware-building-the-private-cloud-you-actually-want/
                                  • 11/18/2027
                                    01:00 PM
                                    11/18/2027
                                    Assume Breach, Prove Recovery
                                    https://www.truthinit.com/index.php/channel/2254/assume-breach-prove-recovery/
                                  • 12/16/2027
                                    01:00 PM
                                    12/16/2027
                                    The Self-Running Service Desk
                                    https://www.truthinit.com/index.php/channel/2255/the-self-running-service-desk/
                                  Truth in IT
                                  • Sponsor
                                  • About Us
                                  • Terms of Service
                                  • Privacy Policy
                                  • Contact Us
                                  • Preference Management
                                  Desktop version
                                  Standard version