Skip to content

Stackยป

Stack is one of the core concepts in Spacelift. A stack is an isolated, independent entity and the choice of the word mirrors products like AWS CloudFormation, or Pulumi (of which we support both). You can think about a stack as a combination of source code, current state of the managed infrastructure (eg. Terraform state file) and configuration in the form of environment variables and mounted files.

Unless you're using Spacelift only to host and test private Terraform modules, your account should probably contain one or more stacks to be of any use. For example:

Here's a few helpful articles about stacks:

  • In this article, you can learn how to create a new stack;
  • Here you can see all the settings that are available for the stack;
  • Here you can learn about stack locking;

Stack stateยป

Similar to runs and tasks, stacks also have states. A stack's state is the last state of its most recently processed tracked run that has progressed beyond the queued state and which was not canceled. Only if the stack has no runs yet a special state "None" is applied:

Stack states allow users to see at a glance the overall health of their infrastructure, and the level of development activity associated with it.