Skip to main content

Installing AWS CLI on Mac

Recently I started exploring Amazon Web Services. Day by day I am becoming a big fan of cloud technologies. To start with, in this article I am posting a few steps which I did to setup Amazon Command Line Interface (AWS CLI). AWS CLI is a unified tool for managing  different AWS Services. With one tool we can control and manage services given by amazon. To explore more on controlling services through CLI, you can refer to you can refer to the documentation.

In this article I'm gonna describe you the steps I've done to configure AWS CLI. To install, we need to have 'pip' a package manager for python.
Installation Requirement
For installing AWS CLI we need to have the following:
  • Python 2 version 2.6.5+ or Python 3 version 3.3+.
  • Windows, Linux, MAC or Unix. In my case I'm only configuring for MAC PC.

Installing pip

Download get-pip.py from this location. Once you download get-pip.py, you need to run the script with following command.

python get-pip.py.

You may need root privilege since it is copying some files outside user's home directory.
Installing CLI
once installed pip, you can directly run the following command


$ pip install --upgrade --user awscli
Here --upgrade tells pip to upgrade any features that are already installed. --user option tells pip to install the program to a subdirectory of user directory to avoid modifying OS based libraries.

Instead of the above, you can use brew installer as well:


brew install awscli

After installation the path for aws will be inside ~/Library/Python/2.7/bin






We may need to configure path for global access

Configuring Environment Variable

Update your shell profile. For me I need to update bash_profile. So I use vi ~/.bash_profile. Append :~/.local/bin  with $PATH.

So thats it... Now if you open a new terminal, you can type aws command.



Comments

Popular posts from this blog

Download YouTube Videos

Youtube converters are now taking attention of Internet users...Earlier it was very difficult to convert or download a youtube file to our disk. But now, you can download a file in formats like AVI, MPG, MP4, WMV,3gp(Mobile). You can convert either by using online application(such as youtubeconverter ) or by downloading an application software. You can use free softwares like YoutubeConverter that supports fast conversion. Some online applications supports mp3 formats as well. Try now....and feel the freedom!!!

Configuring Sublime to run in command line for Mac PC

On March 2017, I migrated to 2016 model Macbook Pro and now I am on my way to configure all the web development tools which was using before on Linux PC. Installation of most of the tools are pretty straight forward compared to Linux. On most of the occasions we don't even need to run any commands during installation process. By the way, my mac os version is Sierra (10.12)  I installed latest version of Sublime Text(version 3, build #3126). When I started to do actual development, I encountered this issue. From terminal I tried to run " subl . " . But I received an error saying command not found .   A one line terminal command could resolve this issue: ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl Here we are linking /usr/local/bin/subl with sublime executable command. So later when we run subl . it will open Sublime Text IDE from current working directory. If you again encounter any issue, then you may nee...

Configure WLL Modem in Ubuntu

People who are using WLL wireless modem may often found that they can't configure it in Ubuntu or other linux distros. Some distros like OpenSuse automatically detects WLL modem but in ubuntu auto configuration is not possible. manual configuration requires following steps:- Before starting this you need to ensure that your WLL phone is connected with the PC through USB cable. Step 1: Open terminal (Applications -> Accessories -> terminal) Step 2: Type the command : sudo wvdialconf. This will add the device file ttyACM0 the dev directory. Step 3: Type gksudo gedit /etc/wvdial.conf This will display a text document like: [Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Modem Type = USB Modem ISDN = 0 New PPPD = yes Modem = /dev/ttyACM0 Baud = 460800 Phone = Username = Password = Stupid Mode = 1 Step 4: Type your user name, password and phone number in the required areas and save the file. Step 5: On Terminal Type wvdial. This command is requir...