Skip to content

terraform-switcher

Switch between different versions of terraform

tfswitch command line tool lets you switch between different versions of terraform. If you do not have a particular version of terraform installed, tfswitch lets you download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform.

devops

https://tfswitch.warrensbox.com/

amd64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install terraform-switcher

sudo apt install terraform-switcher

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    terraform-switcher=0.13.1308*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      terraform-switcher=0.13.1308*

Download URLs

Version SHA256 Size (KB)
0.13.1308 e1f1355714ca8a3761fed47ec98a93e6eb5dea8e697e5cc369b2d9030f95ef7a 3109

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for terraform-switcher are versioned here.

Click here to see terraform-switcher ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/terraform-switcher/ops2deb.yml
name: terraform-switcher
version: 0.13.1308
homepage: https://tfswitch.warrensbox.com/
summary: switch between different versions of terraform
description: |-
  tfswitch command line tool lets you switch between different versions of
  terraform. If you do not have a particular version of terraform installed,
  tfswitch lets you download the version you desire. The installation is minimal
  and easy. Once installed, simply select the version you require from the
  dropdown and start using terraform.
fetch: https://github.com/warrensbox/terraform-switcher/releases/download/{{version}}/terraform-switcher_{{version}}_linux_{{target}}.tar.gz
install:
  - tfswitch:/usr/bin/tfswitch

The blueprint fetch keyword contains a URL template pointing to terraform-switcher releases. Downloaded files are locked in a lockfile versioned here.

Click here to see terraform-switcher release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/terraform-switcher/ops2deb.lock.yml
- url: https://github.com/warrensbox/terraform-switcher/releases/download/0.13.1308/terraform-switcher_0.13.1308_linux_amd64.tar.gz
  sha256: bf35b90cc083509b44182aa79eb0fa39817d60cdb6883bf31cb5c3a0c49dc2dc
  timestamp: 2023-10-09 09:31:03+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/terraform-switcher.svg)](https://docs.wakemeops.com/packages/terraform-switcher)
<a href="https://docs.wakemeops.com/packages/terraform-switcher">
  <img src="https://docs.wakemeops.com/badges/terraform-switcher.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/terraform-switcher.svg
:target: https://docs.wakemeops.com/packages/terraform-switcher