How to install the AWS Command Line Interface on MacOS


AWS is the most widely used cloud service in the world and provides a collection of services that can be leveraged by developers to build their applications.  To manage the various AWS services, you can use either the AWS Management Console or the AWS Command Line Interface. However if you want automate your development environment setup using scripts, the AWS CLI is your preferred tool.

AWS CLI

In this article, you will learn about AWS CLI and find out how to install it on your macOS in 2 simple steps.

In my earlier article, we looked at how Homebrew simplifies the management of software on the Mac Operating system. You can use Homebrew to automate your development environment setup. Read more about Homebrew here.

Homebrew

 

The AWS Command Line Interface is an open source tool built on top of the AWS SDK for Python that provides commands for interacting with AWS services. All the functionality provided by the AWS Management Console are also being provided from the AWS Command Line Interface tool. The AWS CLI is immensely helpful when you want to automate the resource management process by writing shell scripts, so that it can be reused over and over again by different set of developers.

Installation Steps

Open the Terminal window in Mac and run the below command to install Homebrew —

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Run the below command to install AWS CLI –

brew install awscli

For AWS CLI, you must have Python installed on the system as a prerequisite. However you will notice that when Homebrew installs the AWS CLI, it will install a number of dependencies of awscli as well including python.

$ brew install awscli
==> Installing dependencies for awscli: readline, sqlite, gdbm, openssl, xz, python3

That’s it. You are all set to start using AWS CLI on your MacOS.

mac-os-icon

Conclusion

The AWS CLI provides direct access to various AWS services’ APIs. You can explore the AWS service’s capabilities with the AWS CLI, and develop shell scripts to manage your resources.



Categories: AWS, MacOS

2 replies

  1. Every part of this title makes me sad.
    jk. miss yall already.
    Thanks,
    Robb Schiefer
    Twitter – @chief7
    Blog – dotnetcatch.com
    BHM.NET Meetup – https://www.meetup.com/Birmingham-NET-Meetup/
    ________________________________

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: