terraform

New version of ServiceNow Terraform Catalog enables resource updates

The ServiceNow Service Catalog for Terraform now lets you update existing Terraform workspaces and reprovision resources with new variables.

We are excited to announce the ServiceNow Service Catalog for Terraform has been updated to version 2.3. This latest iteration introduces new items to the Terraform Catalog, providing more robust options for platform teams keen on updating and redeploying their existing Terraform infrastructure — essentially enabling seamless Day 2 operations within the application. Additionally, version 2.3 addresses the issue of duplicate workspace names for customers using multiple ServiceNow instances.

This post covers version 2.3’s new features, including:

  • New Catalog items for Day 2 actions
  • Streamlined multi-instance integration

»Updating Terraform workspaces and variables

Enabling Day 2 operations has long been a highly requested feature in the ServiceNow Service Catalog for Terraform. After setting up their initial workspace and resources, many users wished for easy ways to change details like workspace description or how it runs, or even shift it to a different project within Terraform Cloud or Enterprise. Plus, if a workspace had variables, many users expected a straightforward way to see, change, and then update variable values through the Terraform Catalog.

To address these requests, the latest update introduced new Catalog Items designed to help users set up their own update processes. Whether ServiceNow admins prefer to configure the Catalog Items with Flows or Workflows as a main process engine, there are now specific items they can choose from the Catalog and tweak to meet their specific needs:

  • Update Workspace: This lets you change workspace configurations, such as VCS repository, description, project, execution mode, or agent pool ID (if applicable).
  • Update Workspace with Variables: This item allows you to change details about the workspace configurations and variable values attached to it.
  • Update Resources: This option combines Update Workspace and Create Run to let you change workspace configurations and start a new Terraform run with these new values.
  • Update Resources with Variables: Using this, you can change both your workspace and its variables, then start a Terraform run with these updated values.

When you create a workspace, all its details are now saved in the application’s Terraform database. When you want to update something, the form shows the saved details, making it easy for you to make changes. The values of the variables are also saved. ServiceNow admins now have access to a new Terraform Variables menu module where they can see all these saved variables. These new features work only for workspaces that you set up using the ServiceNow Service Catalog for Terraform.

»Streamlining multi-instance integration with Terraform Cloud

Version 2.3 of the ServiceNow Service Catalog for Terraform brings an optimized solution for Terraform customers operating with multiple ServiceNow instances connected to a single Terraform Cloud or Enterprise organization.

The app names workspaces based on ServiceNow ticket numbers, and as more workspaces are created within Terraform Cloud or Enterprise, the numbers naturally auto-increment. When multiple instances create new Terraform workspaces at the same time, there is a risk of overlapping numbers.

To mitigate this potential issue, our latest feature enhancement ensures that each Terraform workspace name is unique. Should the app identify a pre-existing workspace with an identical name, it appends a ServiceNow instance ID to the workspace name. This approach maintains consistency and guarantees the distinctive identification of every workspace, ensuring seamless operation across all instances.

The ServiceNow instance ID is appended to ensure unique workspace names.

The ServiceNow instance ID is appended to ensure unique workspace names.

»Key benefits

The general availability of the latest version of ServiceNow Service Catalog for Terraform Cloud and Terraform Enterprise lets users generate new Terraform workspaces and initiate resource provisioning from the Service Catalog interface. That brings two main benefits:

  1. Improved efficiency: Previously, there was no straightforward method to modify the settings of an existing workspace or to redeploy current resources. Admins can now choose a specific workspace from a list of previously created workspaces enabling them to revisit previous values, make necessary edits, and submit the changes for an update.
  2. Reduced risk: Stopping admins from creating workspaces with identical names reduces the risk of overlapping numbers and ensures ServiceNow admins consistency in workspaces.

»Get started and try Terraform Cloud

New catalog items and streamlined multi-instance integrations are available today as generally available features. Learn more by reading thet ServiceNow Service Catalog documentation. And if you haven’t already, get started for free on Terraform Cloud to provision and manage all your infrastructure.

Sign up for the latest HashiCorp news

By submitting this form, you acknowledge and agree that HashiCorp will process your personal information in accordance with the Privacy Policy.