Install Terraform with tfenv

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • tfenv

    Terraform version manager

  • git clone https://github.com/tfutils/tfenv.git ~/.tfenv export PATH="$HOME/.tfenv/bin:$PATH" # install to appropriate shell startup file, e.g. $HOME/.bashrc echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.profile

  • terraform

    Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

  • Most tooling for infrastructure operations runs on Intel processors, called the amd64 architecture with in Terraform, but given the recent addition of Macbook M1 laptops, the architecture is arm64. Older versions of Terraform that may be needed will require installing Terraform that is only available on Intel processors (amd64 binaries). This can be installed using tfenv as well.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ruby

    The Ruby Programming Language

  • There will come a time when you will need to change to different versions of Terraform. Similar to tools like rbenv for Ruby or pyenv for Python, there's a popular tool used to install different versions of Terraform called tfenv.

  • CPython

    The Python programming language

  • There will come a time when you will need to change to different versions of Terraform. Similar to tools like rbenv for Ruby or pyenv for Python, there's a popular tool used to install different versions of Terraform called tfenv.

  • Puts Debuggerer

    Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.

  • ARCH="darwin_amd64" # install amd64 plugin for legacy terraform VERS="1.11.2" PKG="terraform-provider-kubectl_${VERS}_${ARCH}.zip" REPO="gavinbunney/terraform-provider-kubectl" URL="https://github.com/${REPO}/releases/download/v${VERS}/${PKG}" # setup plugins directory if this does not exist already mkdir -p $HOME/.terraform.d/plugins/${ARCH}/ # download archive pushd ~/Downloads curl -sOL $URL unzip $PKG && rm README.md LICENSE mv terraform-provider-kubectl_v${VERS} $HOME/.terraform.d/plugins/${ARCH}/ popd

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts