boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

Restrict terraform version due to terraform BSL license change #323

Closed tongueroo closed 1 year ago

tongueroo commented 1 year ago

This is a 🙋‍♂️ feature or enhancement.

Summary

The new Terraform BSL license announcement on August 10, 2023 restricts usage of future Terraform versions from being used with offerings Hashicorp deems competitive to their own solutions. Here's the Terraform license. Terraform 1.5.5 and below are unaffected.

To address this:

The Terraspace framework CLI checks and only allows Terraform 1.5.5 and below usage by default. You can bypass the check if your usage is acceptable within the BSL license, but you must explicitly do so with TS_VERSION_CHECK=0

Note

You have full control over the Terraform installation since terraspace and terraform run entirely from your machine. It's just a matter of installing the Terraform version that Hashicorp considers acceptable for your use case.

There's an opentf manifesto that will likely result in a Terraform fork. We recommend using that fork once it's available.

Generally, Terraspace will develop and test against Terraform 1.5.5 and below and future Terraform forks. Though, I would like to keep Terraspace and official Terraform working also for the folks on it and within the BSL license usage terms.

Related Docs also updated:

Context

How to Test

Running a Terraform version that is newer than 1.5.5 should errors with an exit code of 1.

Version Changes

Patch

tongueroo commented 1 year ago

Released in 2.2.9