This repository contains practical examples demonstrating various Spacelift features and use cases. Each directory represents a specific scenario with complete configuration files and documentation.
Configures an Apache HTTP Server on EC2 instances with Ansible, using the AWS EC2 inventory plugin to find the hosts.
This example demonstrates how to manage Spacelift environment variables using a YAML configuration file with the Spacelift Terraform provider.
A Go tool that statically parses Terraform/OpenTofu HCL and reports the labels applied to stacks created via the terraform-spacelift-stack module.
An administrative stack that scans a directory in the repository and creates one Spacelift stack per subdirectory it finds, so adding a stack is just adding a directory.
- Choose an example that matches your use case
- Follow the README in the specific example directory
- Adapt the configuration to your environment
- Deploy using Spacelift
- A Spacelift account
- Terraform knowledge
- Access to your target cloud provider (AWS, Azure, GCP)
Feel free to contribute additional examples or improvements to existing ones.