This tutorial explains, how to install AWS CLI on ubuntu 18.04 or higher version.
Amazon Command Line Interface (AWS CLI) is a command line tools to manage our Amazon web service. Aws cli provides direct access of public api of Amazon Web Service. We can direct access any S3 directory, Instances and all features that provided by Amazon Web Service.
Install AWS CLI
To install Aws Cli on the ubuntu, run the following command on terminal:
$ sudo apt-get update $ sudo apt-get install awscli
Now Aws Cli installed on the system. We can check version of AWS by running below command:
$ aws --version
Configure AWS Account Using AWS CLI
We need to configure our AWS account with credentials to access Amazon Web Service. Need to AWS Access Key ID & AWS Secret Access Key ID to configure the same. Run the following command to configure AWS Cli:
- Type in AWS Access Key ID then press .
- Type AWS Secret Access Key ID and press .
- Type in your default region name. It’s something like us-east-1.
- Now type in your default output format. You may choose between the default, in which case just press .
Now it successfully configured. We can manage our Amazon Web Services using AWS CLI.
Now, we have configured AWS on our system. We can start using the Aws Cli. The configuration files of AWS CLI is stored in ~/.aws/config and ~/.aws/credentials file.
You can also see the Aws Cli documentation here