Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 891 Bytes

howto-tf-versions.md

File metadata and controls

31 lines (23 loc) · 891 Bytes

Use Different Terraform Versions

By default Cluster.dev runs that version of Terraform which is installed on a local machine. If you need to switch between versions, use some third-party utilities, such as Terraform Switcher.

Example of tfswitch usage:

tfswitch 0.15.5

cdev apply

This will tell Cluster.dev to use Terraform v0.15.5.

Use CDEV_TF_BINARY variable to indicate which Terraform binary to use.

!!! Info The variable is recommended to use for debug and template development only.

You can pin it in project.yaml:

    name: dev
    kind: Project
    backend: aws-backend
    variables:
      organization: cluster-dev
      region: eu-central-1
      state_bucket_name: cluster-dev-gha-tests
    exports:
      CDEV_TF_BINARY: "terraform_14"