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
  • CPE

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

              View CPE Certificates

              Upcoming 360 View Events

              • Nov
                19

                Securing the Microsoft Enterprise: Strengthening Configuration Management, Identity Security, and Data Protection

                11/19/202601:00 PM ET
                More events

                XStreaminars (watch here)

                • Oct
                  27

                  Illumio: See It. Stop It. Contain It. Lateral Movement Defense in Action

                  10/27/202611:00 AM ET
                  • Oct
                    28

                    EnvZero: Near-Zero Time to Resolution--Live Agentic Remediation for Failed and Drifted Infrastructure

                    10/28/202601:00 PM ET
                    • Nov
                      12

                      Leaving VMware Means Leaving vSAN: Your VMware Exit Is Really a Storage Decision

                      11/12/202601:00 PM ET
                      More events

                      Industry Events (Sponsor Hosted)

                      • Oct
                        20

                        Master Data Governance for AI with Cyera and Snowflake Insights

                        10/20/202611:00 AM ET
                        • Oct
                          27

                          Maximize Security, Value, and Profit from Your Microsoft Investment

                          10/27/202611:00 AM ET
                          • Oct
                            27

                            The HUMAN Experience: Real-Time Insights into Page Intelligence

                            10/27/202601:00 PM ET
                            • Oct
                              28

                              Ensuring AI Security Across the APAC Region

                              10/28/202601:00 AM ET
                              • Oct
                                28

                                EMEA: Ensuring Comprehensive AI Security Across All Platforms

                                10/28/202606:00 AM ET
                                More events

                                Upcoming Webinar Calendar

                                • 10/20/2026
                                  11:00 AM
                                  10/20/2026
                                  Master Data Governance for AI with Cyera and Snowflake Insights
                                  https://www.truthinit.com/index.php/channel/2137/master-data-governance-for-ai-with-cyera-and-snowflake-insights/
                                • 10/27/2026
                                  11:00 AM
                                  10/27/2026
                                  Maximize Security, Value, and Profit from Your Microsoft Investment
                                  https://www.truthinit.com/index.php/channel/2178/maximize-security-value-and-profit-from-your-microsoft-investment/
                                • 10/27/2026
                                  11:00 AM
                                  10/27/2026
                                  Illumio: See It. Stop It. Contain It. Lateral Movement Defense in Action
                                  https://www.truthinit.com/index.php/channel/2182/see-it-stop-it-contain-it-lateral-movement-defense-in-action/
                                • 10/27/2026
                                  01:00 PM
                                  10/27/2026
                                  The HUMAN Experience: Real-Time Insights into Page Intelligence
                                  https://www.truthinit.com/index.php/channel/2139/the-human-experience-real-time-insights-into-page-intelligence/
                                • 10/28/2026
                                  01:00 AM
                                  10/28/2026
                                  Ensuring AI Security Across the APAC Region
                                  https://www.truthinit.com/index.php/channel/2125/ensuring-ai-security-across-the-apac-region/
                                • 10/28/2026
                                  06:00 AM
                                  10/28/2026
                                  EMEA: Ensuring Comprehensive AI Security Across All Platforms
                                  https://www.truthinit.com/index.php/channel/2127/emea-ensuring-comprehensive-ai-security-across-all-platforms/
                                • 10/28/2026
                                  01:00 PM
                                  10/28/2026
                                  AMERICAS: Safeguarding AI Across All Fronts
                                  https://www.truthinit.com/index.php/channel/2126/americas-safeguarding-ai-across-all-fronts/
                                • 10/28/2026
                                  01:00 PM
                                  10/28/2026
                                  EnvZero: Near-Zero Time to Resolution--Live Agentic Remediation for Failed and Drifted Infrastructure
                                  https://www.truthinit.com/index.php/channel/2179/envzero-near-zero-time-to-resolution-live-agentic-remediation-for-failed-and-drifted-infrastructure/
                                • 11/04/2026
                                  11:00 AM
                                  11/04/2026
                                  Aligning Agentic Intent: Understanding Your Agents' Purpose vs. Their Actions
                                  https://www.truthinit.com/index.php/channel/2158/aligning-agentic-intent-understanding-your-agents-purpose-vs-their-actions/
                                • 11/05/2026
                                  02:00 PM
                                  11/05/2026
                                  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/
                                • 11/05/2026
                                  02:00 PM
                                  11/05/2026
                                  Reclaim Your Evenings: Leverage Data Intelligence to Minimize Risk and Boost AI Adoption
                                  https://www.truthinit.com/index.php/channel/2172/reclaim-your-evenings-leverage-data-intelligence-to-minimize-risk-and-boost-ai-adoption/
                                • 11/12/2026
                                  01:00 PM
                                  11/12/2026
                                  Leaving VMware Means Leaving vSAN: Your VMware Exit Is Really a Storage Decision
                                  https://www.truthinit.com/index.php/channel/2192/leaving-vmware-means-leaving-vsan-your-vmware-exit-is-really-a-storage-decision/
                                • 11/19/2026
                                  01:00 PM
                                  11/19/2026
                                  Securing the Microsoft Enterprise: Strengthening Configuration Management, Identity Security, and Data Protection
                                  https://www.truthinit.com/index.php/channel/2076/securing-the-microsoft-enterprise-strengthening-configuration-management-identity-security-and-data-protection/
                                • 11/19/2026
                                  01:00 PM
                                  11/19/2026
                                  Zendesk Deep Dive: Get the work done faster with Employee Service AI Agents
                                  https://www.truthinit.com/index.php/channel/2181/zendesk-deep-dive-get-the-work-done-faster-with-employee-service-ai-agents/
                                Truth in IT
                                • Sponsor
                                • About Us
                                • Terms of Service
                                • Privacy Policy
                                • Contact Us
                                • Preference Management
                                Desktop version
                                Standard version