diff --git a/spacemk/exporters/terraform.py b/spacemk/exporters/terraform.py index 56ceb23..2bd08a6 100644 --- a/spacemk/exporters/terraform.py +++ b/spacemk/exporters/terraform.py @@ -186,7 +186,8 @@ def _check_workspaces_data(self, data: list[dict]) -> list[dict]: if item.get("attributes.vcs-repo.service-provider") is None: warnings.append("No VCS configuration") - if semver.match(item.get("attributes.terraform-version"), ">=1.5.7"): + terraform_version = item.get("attributes.terraform-version") + if terraform_version == "latest" or semver.match(terraform_version, ">=1.5.7"): warnings.append("BSL Terraform version") data[key]["warnings"] = ", ".join(warnings)