Skip to content

Installation of AWS CLI on Silicon Mac

0
  • Installed AWS CLI PKG made sure it was the one for arm MAC silicon
  • installed for all users since single user installation was not working
  • running the command but it won't give me the positive result

'MACBOOK' ~ % aws --version zsh: command not found: aws

what am I doing wrong? this is for the AWS learning course.

asked a year ago662 views

2 Answers
0

Based on your description, it sounds like the AWS CLI installation was completed but the system can't find the AWS CLI command. This is likely a PATH issue where your terminal doesn't know where to find the AWS CLI executable.

When you install the AWS CLI on macOS using the PKG installer, it typically installs to /usr/local/aws-cli with a symlink to the aws command in /usr/local/bin/aws.

Here are some steps to troubleshoot:

  1. First, check if the AWS CLI is actually installed by looking for it directly:
ls -la /usr/local/bin/aws
  1. If it exists there but you still get "command not found", you may need to add /usr/local/bin to your PATH. You can do this temporarily by running:
export PATH=$PATH:/usr/local/bin
  1. To make this permanent, add that line to your ~/.zshrc file.

  2. Alternatively, you can try running the AWS CLI using the full path:

/usr/local/bin/aws --version

Good news for Mac users: Starting with AWS CLI v2 version 2.30.0, AWS provides universal macOS installers that work natively on both Apple silicon and Intel processors with a single download, eliminating the need for Rosetta translation. If you're using an Apple silicon Mac, make sure you're using this latest version for the best experience.

If you continue to have issues, you might want to try reinstalling the AWS CLI or checking if there are any error messages during the installation process.
Sources
Why doesn't my AWS CLI work? | AWS re:Post
Introducing universal installers for AWS CLI v2 on macOS | AWS DevOps & Developer Productivity Blog

answered a year ago

0

Hi,

Did you try find / -name aws in a terminal window to locate if / where aws CLI is installed ?

Didier

EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.