How to Install & Configure AWSCLI on macOS ?

Users using macOS can follow the below command and steps to install the latest version of AWS CLI.The user should have sudo access to execute the below command.

​​For the latest version of the AWS CLI, use the following command block:
$ curl "" -o "AWSCLIV2.pkg"
$ sudo installer -pkg AWSCLIV2.pkg -target /

Steps :

raghavendrakambhampati@RaghavendrasMBP ~ % curl "" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25.7M  100 25.7M    0     0  4412k      0  0:00:05  0:00:05 --:--:-- 4525k
Password: < Enter your machine password for sudo access)
installer: Package name is AWS Command Line Interface
installer: Installing at base path /
installer: The install was successful.

To Validate if AWS CLI is installed properly, run the below commands:

raghavendrakambhampati@RaghavendrasMBP ~ % which aws
raghavendrakambhampati@RaghavendrasMBP ~ % aws --version
aws-cli/2.3.3 Python/3.8.8 Darwin/20.6.0 exe/x86_64 prompt/off
raghavendrakambhampati@RaghavendrasMBP ~ % 

To Configure AWS CLI,run below command and enter your access key and secret access key which can be created in your AWS IAM User Account -> Select Security Credentials-> Click on Create Access Key and download those credentials and use in the below step.

raghavendrakambhampati@RaghavendrasMBP ~ % aws configure
AWS Access Key ID [None]: ********** < Enter your Access Key >
AWS Secret Access Key [None]: ********** < Enter your Secret Access Key >
Default region name [None]: eu-west-2
Default output format [None]:
raghavendrakambhampati@RaghavendrasMBP ~ %

16 views0 comments

Recent Posts

See All

AWS Support offers four support plans: Basic, Developer, Business, and Enterprise. The Basic plan is free of charge and offers support for account and billing questions and service limit increases. ..