Bird
0
0

After installing AWS CLI on Windows, running aws --version returns an error stating 'The term 'aws' is not recognized'. What should you do to fix this?

medium📝 Predict Output Q5 of 15
AWS - CLI
After installing AWS CLI on Windows, running aws --version returns an error stating 'The term 'aws' is not recognized'. What should you do to fix this?
ARun <code>aws configure</code> to set up credentials
BReinstall AWS CLI using the MSI installer with admin rights
CRestart the AWS CLI service from Windows Services panel
DAdd the AWS CLI installation directory to the system PATH environment variable
Step-by-Step Solution
Solution:
  1. Step 1: Understand the Error

    'The term 'aws' is not recognized' means the system cannot find the AWS CLI executable.
  2. Step 2: Check PATH Variable

    The AWS CLI installation folder must be included in the PATH environment variable for the command to be recognized.
  3. Step 3: Fix the PATH

    Add the AWS CLI install directory (e.g., C:\Program Files\Amazon\AWSCLI\bin) to the PATH variable and restart the terminal.
  4. Final Answer:

    Add the AWS CLI installation directory to the system PATH environment variable -> Option D
  5. Quick Check:

    Verify PATH includes AWS CLI folder [OK]
Quick Trick: Add AWS CLI folder to PATH to fix command not recognized [OK]
Common Mistakes:
  • Assuming reinstall fixes PATH issues
  • Trying to restart a non-existent AWS CLI service
  • Running aws configure before installation is recognized

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes