Instead of providing you with specific instructions, it's better for us to point you the official documentation. We'll break it down, however, based on your platform and a few other details as the process of installing Terraform evolves and changes.
Terraform has a rapid development cycle so the version jumps up rapidly. In light of this we're setting the version that's used in this book to:
When there is a minor version change (that's the middle number) we'll review the backwards compatibility and if it's suitable, we'll upgrade the version here to reflect that.
In our Ubuntu VM we can follow the official instructions on using the official HashiCorp APT repository.
Now let's review some Terraform basics.