Using the spacelift_saved_filter Terraform resource for saved views

Last updated: December 19, 2025

The spacelift_saved_filter Terraform resource corresponds to the saved views feature in the Spacelift UI. This resource allows you to programmatically create and manage saved views that filter your stacks, modules, and other resources based on specific criteria.

What are saved views?

Saved views in Spacelift allow you to create custom filters to organize and display your resources based on labels, teams, or other attributes. These views help you quickly access relevant stacks and modules without manually applying filters each time.

Creating views with team labels

You can use the spacelift_saved_filter resource to create views based on team labels and other filtering criteria. This enables you to organize your resources by team ownership or any other labeling strategy you use in your organization.

For detailed configuration options and examples, refer to the spacelift_saved_filter resource documentation in the Terraform registry.

Getting started

To begin using this resource, you can experiment with different filter configurations in your Terraform code to match your team's organizational needs. The resource supports various filtering options that mirror the capabilities available in the Spacelift UI.