Install AWS CLI for Mac

Start course
Overview
Difficulty
Beginner
Duration
55m
Students
5633
Description

Compute Fundamentals for AWS offers you an updated introduction to AWS's cornerstone compute services, and provides a foundation as you build your compute skills for AWS. It includes coverage of:

- Amazon Elastic Compute Cloud (EC2)
- Elastic Load Balancers (ELBs)
- Auto Scaling
- Amazon EC2 Container Registry and Services (ECR and ECS)
- AWS Elastic Beanstalk
- AWS Lambda

Do you have questions on this course? Contact our cloud experts in our community forum.

Transcript

The installation of the AWS CLI on a Mac is a very straightforward process. Either through pip or using the bundled installer. Personally, I find the installation via pip to be the easiest and this is what we'll use in this demo.

Before we start we need to ensure that we have the required prerequisites installed on our Mac which is Python version 2.65 or higher or Python 3 version 3.3 or higher and of course, pip. To check we will launch our terminal and check for Python. We type Python--version and pip--version. Note, if you don't have Python installed please download and install Python before continuing.

Now that we have confirmed that we have met the minimum requirements, we type in pip install AWS CLI. Note, on OS X if you see an error regarding the version of six that came with the distutils in El Capitan, use the --ignore-installed option with the command sudo pip install AWS CLI--ignore-installed six. To check that the installation has been successful, enter the command AWS--version and this should return the AWS CLI version, Python version, and the operating system that you are running.

The next thing you need to do is to configure the AWS CLI. And the easiest way to do that is to run the command AWS configure from the terminal window and you will be prompted for four bits of information being your AWS access key ID, AWS secret access key, default region, and default output format. Your access keys consist of an access key ID and secret access key which you use to sign programmatic requests that you make to AWS. We will now configure AWS CLI. So from a terminal window type in AWS configure and then press enter and then enter your access key and secret key. For the region, you can leave this blank and then specify it in future commands. But for this, we will enter AP-southeast-one. And finally, the output format that you want responses to commands to be returned. You have the choice of table, JSON or text. My personal preference is table but again, when you're running commands you can specify a different output format. If you make a mistake or change a value that you have entered, just run the command again to update the configuration.

About the Author
Students
17723
Courses
1
Learning Paths
2

David's acknowledged hands on experience in the IT industry has seen him speak at international conferences, operate in presales environments and conduct actual design and delivery services.

David also has extensive experience in delivery operations. David has worked in the financial, mining, state government, federal government and public sectors across Asia Pacific and the US