2. Install AWSCLI using Homebrew on Mac
Make sure you have Python3 installed on your mac, you can the Python version using below command
$ python3.7 –version
$ brew install AWSCLI
3. Make you you have the PATH variable set correctly to access AWSCLI from the terminal
$ echo $PATH
$ which aws
Mostly awscli is installed in ‘/usr/local/bin’ so if it does not exist on your PATH variable, add it to the PATH variable in the profile
$ export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
4. Connect to your AWS instance
Please note you need to have a user with access key ID and Access secret
$ aws –version
$ aws configure
Enter your credentials and your good to good
$ aws s3 ls