Spacelift not only simplifies CI/CD but also provides a robust framework for managing the lifecycle of your infrastructure deployments.
Core Concepts in Spacelift
At the heart of Spacelift is the concept of a “stack.” A stack represents the combination of your Infrastructure as Code source, the current state of your managed infrastructure (similar to a Terraform state file), and any associated environment variables or configurations. In the Spacelift UI, each repository and backend state you manage is organized as a separate stack.
Policy Management with Spacelift
Spacelift leverages the Open Policy Agent (OPA) to enable you to write policies as code. This declarative approach allows you to enforce security and operational best practices. Key policy types include:- Login Policy: Controls who is permitted to log into Spacelift.
- Access Policy: Determines which users have access to individual stacks.
- Approval Policy: Specifies who can approve or reject a run.

For further details on how to implement and customize policies in Spacelift, check out the Spacelift Documentation.