How to download and Install Chef in Amazon EC2 Linux Instance

Share via:

Download and Install Chef in Amazon EC2 Linux Instance

In this article,we will see Download and Install Chef in Amazon EC2 Linux Instance.

Steps to follow Download and Install Chef

  1. Launch Linux EC2 Instance.
  2. Connect to Linux EC2 Instance through Putty.
  3. Switch to root user.
  4. Update Server Packages.
  5. Download and Install chef package.
  6. Verify chef package and Version.

Launch Linux EC2 Instance 

Please check below link to Launch Linux Server.

Launch Linux EC2 Instance

We can see Linux Server “Chef-Workstation” which was created earlier.

Connect to Linux EC2 Instance through Putty

Open Linux EC2 Instance Terminal

Switch to root user

Update Server Packages

By using “yum update” command.

Download and Install chef package

Download Chef Package

First we need to go chef official website by using below link.

https://www.chef.sh/

Click on DOWNLOADS.

Click on Get it.

Copy Chef package URL from website

Copy URL  https://packages.chef.io/files/stable/chef-workstation/0.13.35/el/7/chef-workstation-0.13.35-1.el7.x86_64.rpm

 

Paste URL which was copied from website in Linux EC2 Terminal

The chef package has been downloaded successfully.

Install chef package

Verify chef package and Version

Verify chef package

To see the version of Chef

using chef -v command

using chef -version command

Thank you for giving your valuable time to read the above information.

Follow us on 

Website :  www.ktexperts.com

Facebook Page : KTexperts

Linkedin Page : KT EXPERTS

 

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3.00 out of 5)
Loading...

3 thoughts on “How to download and Install Chef in Amazon EC2 Linux Instance

  1. Very use full content ..
    every thing in step by step..
    with proper screenshots..i am saving lot of time fallowing these steps and also did not face any errors.
    thankq so much

Add Comment