In this article we are going to see how to set up AWS CLI. The AWS Command Line Interface (CLI) is a powerful tool that allows you to interact with the AWS resources directly from your local command line or terminal.
STEP1:
Install AWS CLI
The first step is to install AWS CLI on your local machine. AWS CLI is supported on Windows, macOS, and Linux operating systems. In this step, we will cover the installation process for Windows.
For Windows:
- Go to the AWS CLI official website (https://aws.amazon.com/cli/) and download the AWS CLI installer for Windows.
- Run the installer and follow the on-screen instructions to complete the installation.
- Open a new command prompt or PowerShell window to start using AWS CLI.AWS account should be created with data present in S3.
STEP2:
Configure AWS CLI
Once you have installed AWS CLI, the next step is to configure it with your AWS credentials. AWS CLI uses access key and secret access key for authentication, which can be obtained from the AWS Management.
- Open a command prompt.
- Run the below command to start the AWS CLI configuration process:
- Enter your AWS access key ID, secret access key, region and output format as shown in the below screenshot.
- Press Enter to complete the configuration process.
STEP3:
Verify AWS CLI Setup
After configuring AWS CLI, you can verify if it is set up correctly by running a simple command, such as listing your S3 buckets.
- Open a command prompt.
- Run the following command to list your S3 buckets.
If you see a list of your S3 buckets, then your AWS CLI setup is successful.
Configure AWS command line interface CLI Getting started with the AWS CLI how to set up AWS CLI Installing or updating the latest version of the AWS CLI Setting up the AWS CLI What are the steps to using AWS CLI Which command is used to set up the AWS CLI installation