TakeScoop / terraform-cloud-workspace-action

GitHub action for managing Terraform cloud workspaces
MIT License
1 stars 0 forks source link

Resolve Terraform version via range or expression #62

Open ryanwholey opened 3 years ago

ryanwholey commented 3 years ago

We currently support passing an exact Terraform version, however it would be nice to be able to be able to use a range or version expression to configure the workspace Terraform version

Example: resolve to the latest v1.x.x version -> 1.0.4 (current)

with:
  terraform_version: v1

Complications:

example versions list: https://app.terraform.io/api/v2/tool-versions?organization_name=ryanwholey

bendrucker commented 2 years ago

This is supported upstream so it should be pretty straightforward to allow:

https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/resources/workspace#terraform_version