Terraform ephemeral workspaces public beta now available
Removing unused infrastructure resources is important not just for cost control, but for security as well.
Everyone working in IT understands the challenge of finding and turning off infrastructure that gets spun up and forgotten about. It's an ongoing issue that unnecessarily inflates IT costs.
Back in June at HashiDays 2023, we previewed the upcoming ephemeral workspaces feature, which is aimed at helping organizations manage the cleanup of old and unwanted resources accumulated over time. Today, the wait is over.
The public beta of ephemeral workspaces for Terraform Cloud Plus is now available. It allows customers to schedule a time to automatically destroy non-production resources, eliminating the need for manual cleanup, reducing infrastructure costs, and streamlining workspace management.
» Benefits of ephemeral workspaces
This new feature benefits infrastructure teams in three ways:
Cost savings: Ephemeral workspaces not only reduce infrastructure costs, they also give more time back to infrastructure teams since they don’t have to hunt down or manually delete unused resources as often.
Increased efficiency: Administrators can set time-to-live (TTL) settings on workspaces through the API or UI, which simplifies management and testing.
Improved security: Workspaces that are not being actively watched or have been forgotten pose a security risk. Automatically destroying unused workspaces helps organizations meet compliance requirements and reduces the potential attack surface of your infrastructure.
» Using ephemeral workspaces
It is easy to use ephemeral workspaces. Just set a date and time for when you would like the workspace to be de-provisioned. Auto-destroy settings can be found in Workspace Settings under the section in the sidebar called Destruction and Deletion.
The status of the auto-destroy setting shows up in the sidebar on your workspace's overview page, alongside settings like Execution mode and Auto apply. The auto-destroy status displays as Off if not configured. If configured, the status shows when the next auto-destroy is planned for. If, for any reason, the scheduled destroy run fails, the sidebar status will link to the failed run, where the run output will provide further details.
Once the configured auto-destroy time is reached, Terraform will automatically run a destroy plan and apply it to destroy your managed resources. Notifications can be configured to send an auto destroy reminder before a destroy
run is triggered and auto destroy results to indicate the success or failure of the destroy
run.
» Getting started with Terraform Cloud
Terraform Cloud is designed to standardize workflows from Day 1 infrastructure provisioning to Day 2 operations and beyond. It helps organizations optimize infrastructure investments and improve operational efficiency. Ephemeral workspaces further builds on this optimization.
Try the new ephemeral workspaces today — and if you are new to Terraform, sign up for Terraform Cloud and contact sales for a trial of Terraform Cloud Plus.
Sign up for the latest HashiCorp news
More blog posts like this one
New Terraform integrations with Crowdstrike, Datadog, JFrog, Red Hat, and more
12 new Terraform integrations from 9 partners provide more options to automate and secure cloud infrastructure management.
Terraform delivers launch-day support for Amazon S3 Tables, EKS Hybrid Nodes, and more at re:Invent
The Terraform provider for AWS now enables users to manage a variety of new services just announced at re:Invent.
HashiCorp at re:Invent 2024: Infrastructure Lifecycle Management with AWS
A recap of HashiCorp infrastructure news and developments on AWS from the past year, from a new provider launch to simplifying infrastructure provisioning and more.