terragrunt, centos,

How to install Terragrunt on CentOS 7

Jan 27, 2022 · 1 min read · Post a comment

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

Prerequisites

  • CentOS 7
  • Terraform
  • sudo privileges

Install Terragrunt on CentOS 7

Step 1. Visit the official Terragrunt release page., find the Assets section and download the terragrunt_linux_arm64 file.

Step 2. Open the Downloads folder, find the recent downloaded Terragrunt file and rename it to terragrunt.

mv terragrunt_linux_arm64 terragrunt

Step 3. To be able to execute terragrunt commands we need to add executable permissions to the binary file.

chmod u+x terragrunt

Step 4. Put the Terragrunt file within the $PATH binary on your machine.

mv terragrunt /usr/local/bin/terragrunt

That’s it the installation is done.

Step 5. To check the version, run:

terragrunt --version

Conclusion

Terragrunt inherits the terraform commands, so you should be able to execute them. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.