Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Labs

Installing and Configuring Terraform on a Compute Engine Instance

Before you begin working with Terraform, you will need to understand how to install it on your current system. This is the foundational step to make sure you are able to use this cutting-edge tool in DevOps. In this hands-on lab, we will learn how to install terraform on a CentOS 7 instance.

Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 15, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create an Instance
    1. From Google Cloud console's main navigation, choose Compute Engine.
    2. Click Create.
    3. Give your instance a name.
    4. Change the boot disk to CentOS 7.
    5. Click Create.
  2. Challenge

    Log in to the Instance via SSH and Download Terraform
    1. From Google Cloud navigation, choose Compute Engine.

    2. In the main window pane, click Create.

    3. Name your instance terraform-instance.

    4. In the Boot disk section, click Change.

    5. Set Operating system to CentOS.

    6. Set Version to CentOS 7.

    7. Click Select.

    8. Click Create.

    9. Click SSH next to terraform-instance.

    10. Install necessary updates:

      sudo yum update -y
      
      sudo yum install wget unzip -y
      
    11. Download Terraform:

      wget https://releases.hashicorp.com/terraform/0.12.23/terraform_0.12.23_linux_amd64.zip
      
    12. Unzip the file:

      unzip terraform_0.12.23_linux_amd64.zip
      
    13. Move Terraform to a directory called temp:

      mkdir temp/
      
      mv terraform temp/
      
    14. Input the path to communicate with Terraform into the /etc profile file:

      echo "PATH='$PATH:~/temp/'" >> .bash_profile
      
    15. Use the following in order to be able to call Terraform:

      source .bash_profile
      
    16. Call Terraform:

      terraform
      
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight