๐Ÿš€ Installing Terraform on Ubuntu ๐Ÿง

pardeep kaurpardeep kaur
1 min read

Are you ready to automate your infrastructure and deploy with confidence? Let's get started with installing Terraform on your Ubuntu system. Follow these steps:

Create an ec2 instance and connect to it through ssh keys and install the following commands:

sudo apt-get update &8 sudo apt-get install -y gnupg software-properties-common
  1. Download HashiCorp's GPG key:

     wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
    
  2. Verify the GPG key fingerprint:

     gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
    
  3. Add the HashiCorp repository to your sources list:

     echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
    
  4. Update your package list:

     sudo apt update
    
  5. Install Terraform:

     sudo apt install terraform
    

And that's it! You now have Terraform installed and ready to create and manage your infrastructure as code. Happy automating! ๐ŸŒ๐Ÿ’ป

#AWS #Terraform #InfrastructureAsCode #DevOps #Ubuntu #HashiCorp


0
Subscribe to my newsletter

Read articles from pardeep kaur directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

pardeep kaur
pardeep kaur

I am an experienced and dedicated professional with a background in Devops. I have obtained the AWS Solution Architect Associate certification, showcasing my proficiency in cloud computing technologies. Currently, I am pursuing my interest in DevOps, aiming to further expand my knowledge and contribute to the seamless integration of development and operations.