Today I’d like to showcase a new feature we released a few hours ago to help you know exactly what will happen when you approve a Terraform plan by highlighting destructive changes, adding search, and improving layout.
Veteran Terraform developers like yourselves know just how painful it is to miss a destructive change. It’s the number one source of bad deployments and downtime.
Since you know how important it is to carefully review terraform plan output, you must also know how excessively tedious it is. Reviewing a long Terraform plan is the devops equivalent of reviewing a massive PR. Ya don’t want them.
You squint your eyes as you review the drab output in the terminal and use a combination of grep and other tools to review it, being careful not to mistake ~ for -, the former being used for updates and the - for deletes. Perhaps you copy-paste into an editor to search through it. Perhaps you even homegrew a tool like many did, such as Scalr community members, Coinbase with Landscape or Chris Lewis with prettyplan. Sadly these last two projects are no longer maintained and don’t work with tf >=0.12.
Scalr addresses this with a new layout, search, and highlight interface for Terraform plans. See for yourself:
The new interface highlights destructive changes, allows you to effortlessly search the entire plan, and is linked to your VCS and CLI so you can easily jump to it straight from your PR or command-line.
It’s awesome, and “makes the review process much simpler to drill into resources of concern” as a customer put it today.
We strive to include a quality of life feature in every release, and this is one heck of a quality of life improvement. Missing destructive changes is the number one source of deployment disasters and highlighting them at review-time is incredibly important. Plus, the visualization, search, and filters offered make it easy to review even the longest plans
Scalr executes operations such as plan or apply on its own service (or on self-deployed agents) before streaming the output to your console, which allows us to capture the plan and present it to you in alternative and superior ways.
This new interface is now available to everyone, at no cost and with no subscription needed. To get started, simply add this snippet of code to your Terraform config and carry on using terraform as normal. You’ll find the link to click in the output.
Enjoy,
Your Friends at Scalr