Terraform Installation on Amazon Linux 2 – EC2

Step1 : Install yum-config-manager to manage your repositories.

				
					sudo yum install -y yum-utils
				
			

Step2 : Use yum-config-manager to add the official HashiCorp Linux repository.

				
					sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
				
			

Step3 : Install Terraform from the new repository.

				
					sudo yum -y install terraform
				
			

Step4 : Verify that the installation

				
					terraform -version
				
			

Leave a Comment