๐ Installing Terraform on Ubuntu ๐ง
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
Download HashiCorp's GPG key:
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
Verify the GPG key fingerprint:
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint
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
Update your package list:
sudo apt update
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
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.