The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. With minimal configuration, the AWS CLI enables you to start running commands that implement functionality equivalent to that provided by the browser-based AWS Management Console from the command prompt in your terminal program.
Download and install AWS CLI v2
PS C:\Repo\Tools\PowerShell> aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Default region name [None]: us-west-2 Default output format [None]: json
Follow the prompts to input your AWS Access Key ID and Secret Access Key, which you’ll find on this page.
The configuration process creates a file at
~/.aws/credentials on MacOS and Linux or
%UserProfile%\.aws\credentials on Windows, where your credentials are stored.