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=1.0.2*

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

Download URLs

Version SHA256 Size (KB)
1.0.2 c750a57c572586970134f8b7ddefdd44e33fed4159c5b24d7237a871b7ac31e6 3338
1.0.1 11ab652946cd32a9dcfa247069a3f65f647805f11e48f84d1693e6fa7465e673 3339
1.0.0 4f267326d3b3b2cb86343a3fb5ab6d327b57574d2114bf9b8c88978e68c95f68 3338
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
matrix:
  versions:
    - 0.13.1308
    - 1.0.0
    - 1.0.1
    - 1.0.2
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
- url: https://github.com/warrensbox/terraform-switcher/releases/download/1.0.0/terraform-switcher_1.0.0_linux_amd64.tar.gz
  sha256: 4cc29c55080785acc417424eae78761e6942c2f57e06528e0b01dcaccd8c7ce9
  timestamp: 2024-04-01 18:06:14+00:00
- url: https://github.com/warrensbox/terraform-switcher/releases/download/1.0.1/terraform-switcher_1.0.1_linux_amd64.tar.gz
  sha256: 6a5bf21e4ec010d26da019ddb86a65c03dc1cfda7f9dea782f7bd6acc38cdac8
  timestamp: 2024-04-02 00:20:54+00:00
- url: https://github.com/warrensbox/terraform-switcher/releases/download/1.0.2/terraform-switcher_1.0.2_linux_amd64.tar.gz
  sha256: b50bb704d7cfe534cdf0bb8bbb91d585a3e40b7b5054228a0be2cc6c714952b6
  timestamp: 2024-04-02 03:05:59+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