Support dynamic detection and usage of Terraform/OpenTofu versions based on version definitions already present in codebases. This avoids duplicating version definitions in Spacelift configuration and aligns with local developer workflows.
Core Feature Scope
Auto-detect versions from common versioning files
Auto-detect the version from:
.terraform-version
.tool-versions (used by asdf)
.tfswitchrc
required_version in .tf files (with logic to use the lowest matching version)
Auto-detection should happen in both:
Root directory
Module directories
Fallback behavior:
Ability to define a default/fallback version at the org or stack level (optional but configurable).
Weβre using Renovate to auto-bump Terraform versions within their .tf files directly. WE do not want to manage a separate .terraform-version or .tofu-version file or make manual updates in Spacelift stacks. We want to maintain:
hclCopyEdit
required_version = ">=x.y.z"
And have Spacelift:
Automatically use the lowest compatible version from that constraint
Avoid hardcoding the version in the stack config or using custom Docker images
Please authenticate to join the conversation.
π Discovery
π‘ Feature Requests
7 months ago
Get notified by email when there are changes.
π Discovery
π‘ Feature Requests
7 months ago
Get notified by email when there are changes.