Step: 1
Launch your terminal on macOS/Linux or Command Prompt/PowerShell on Windows.
Step: 2
Run the command aws --version to verify the current version of the AWS CLI installed on your system.
Step: 3
If using AWS CLI version 1, run the command pip install --upgrade awscli to update to the latest version.
Step: 4
If using AWS CLI version 2, download the latest installer from the AWS CLI installation page and execute the installer.
Step: 5.
After installation, run aws --version again to confirm that the AWS CLI has been updated to the latest version.
Step: 6
Optionally, run aws configure to ensure your configurations are intact and verify that any necessary dependencies are up to date.