Showing posts with label MacOS. Show all posts
Showing posts with label MacOS. Show all posts

Tuesday, September 14, 2021

Install Azure CLI in Mac OS| How to setup Azure CLI in Mac OS | How to Install Azure CLI in Apple Laptop

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation. Azure CLI is Microsoft's cross-platform command-line experience for managing Azure resources.

Azure CLI can be installed in Mac OS by using Homebrew:

Run the update first

brew update && brew install azure-cli

To check the version of Azure CLI

az version


Run the Azure CLI with the az command. To sign in, use the az login command.

az login

Tuesday, August 25, 2020

How to install Ansible on Mac OS | Ansible Installation Steps on Apple Mac OS

Ansible is one of the popular configuration management tools. Ansible can also be used for infrastructure provisioning as well in AWS. Please find steps for installing Ansible on Apple Mac OS or laptop.

Ansible can be installed on Mac OS many ways, but preferred way is using pip which is a Python package manager.

Install Pip

If pip isn’t already available on your system, run the following commands to install it:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip --version

Once pip is installed, install Ansible using pip.

Install Ansible using Pip
To install ansible globally, use following command
sudo -H pip3 install ansible
Once Ansible is installed, you can verify the version.

ansible --version
You should be able to see the version.

Install Boto framework
Boto is a Python package that provides interfaces to Amazon Web Service. It is AWS SDK for Python.

sudo pip install boto
sudo pip install boto3
 
Create Ansible hosts file
when you install Ansible on Mac OS, it does not create ansible hosts file. so you need to create it.
sudo mkdir /etc/ansible
 
Watch the above steps as a video in YouTube channel:

Thursday, April 2, 2020

How to install Terraform on Mac OS - TerraForm Installation Steps on Apple Mac OS

Terraform is used for provisioning infrastructure on Cloud. You don't need to create manually any resource in AWS. Please find steps for installing Terraform on Apple machine or laptop.

Create a working directory
sudo mkdir -p /opt/terraform

cd /opt/terraform

Download Terraform from Hasicorp website
Please go to  https://www.terraform.io/downloads.html


Download Terraform installable zip file for MacOS

sudo curl -O  https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_darwin_amd64.zip

Now unzip the above file by executing below command:

sudo unzip terraform_1.3.9_darwin_amd64.zip
after you unzip, you should see terraform file as shown above.

Add terraform to PATH
Execute below command to edit bash profile. Go to home directory.
cd ~
sudo vi ~/.bash_profile

Go all the way to end of the file. Add below lines as shown in screenshot below:
PATH="/opt/terraform:${PATH}"
export PATH


Execute the file
source ~/.bash_profile

Now make sure terraform is available from anywhere to execute.

terraform --version
Terraform v1.3.9

That's it! You have successfully installed Terraform on Mac OS. You can also watch the steps in my YouTube channel as well.


Master DevSecOps and Multi Cloud Computing Course by Coach AK | DevSecOps and Cloud Computing Online Classes | Sep 2025 Schedule

  Master DevSecOps and cloud Computing Bootcamp Schedule for Sep 2025 Are you ready to  supercharge your career  in  DevSecOps ? Whether you...