-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Noahnc/refac/bug_fixes_and_improvments
Refac/bug fixes and improvments
- Loading branch information
Showing
25 changed files
with
1,822 additions
and
851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Auto-set terraform version | ||
|
||
With the command `tftoolbox.autoSetTerraformVersion` you can automatically select the latest terraform version that matches the requirements of all your open workspaces. The extension evaluates the required terraform version based on the following process: | ||
With the command `tftoolbox.autoSetTerraformVersion` you can automatically select the latest stable terraform version that matches the requirements of all your open workspaces. The extension evaluates the required terraform version based on the following process: | ||
|
||
1. It checks each of your open workspaces for a file called `./Spacelift-Resources/main.tf`. If at least one of your workspaces contains such a file and the file contains a module `module.cmi-spacelift-stacks` with the attribute `terraform_version`, this will be used to filter the terraform versions available on the hashicorp/terraform Github releases page. The latest version that matches all the requirements will be selected. This feature is specific to our workflow at CMInformatik, since we define all spacelift terraform stacks of the Repository in this module incl. the required terraform version. If this file is not present in any of your workspaces, the extension will continue with the next step. | ||
2. The extension searches all .tf files in your open workspaces for `terraform.required_version` attributes. All found `required_version` are then combined into a list of unique version constraints. All releases are then filtered against each of the found version constraints. The latest version that matches all the requirements will be selected. If no version matches all the requirements, the next step will be executed. | ||
3. If the `tftoolbox.autoSetTerraformVersion` command was executed via the command palette, the extension will show you a warning and abort the process. If the command was executed by `tftoolbox.terraform.autoSelectVersion` on startup, the command will abort silently. | ||
3. The extension will select the latest stable terraform version. | ||
|
||
By enabling the setting `tftoolbox.terraform.autoSelectVersion` the extension will auto-select a terraform version when opening VSCode. | ||
|
||
> **_NOTE:_** This command only selects stable versions of terraform. RC, betas or alpha versions are not considered. |
Oops, something went wrong.