Getting started with AWS CLI

Getting started with AWS CLI


    AWS CLI (Command Line Interface) is a simple command-line utility to manage AWS resources. AWS resources can be configured, managed, allocated, de-allocated etc... CLI allows automation via scripts also. There are two versions of the CLI. Version 1 and 2. The documentation for installing on Windows, Linux and MacOS are provided below:

- Linux

- MacOS

- Windows


   Once installed, the installation can be verified by issuing the version command.

> aws --version

The output should be something like: "aws-cli/2.2.4 Python/3.8.8 Windows/10 exe/AMD64 prompt/off". This is the output as of this blog post on windows.


> aws configure

This command prompts for API credentials and default region. When setting up a new user via IAM console, enable programmatic API access. The access key and secret key are prompted.


Note: However, the most concerning thing in this configuration is that the credentials are prompted and are stored in plain text. If you are concerned about prying eyes and hacks. This might not be a preferred method.


Usually aws CLI commands are of the form:

> aws service operation options


service: the name of the service being used.

operation: the operation being performed.

options: various required and optional options.


Help can be obtained via:

> aws help

Provides a list of supported services.


> aws [SERVICE] help

Provides a list of possible operations for the specified service.


> aws [SERVICE] [OPERATION] help

Provides a list of possible options that can be specified for the service and operation.


Getting started with AWS CLI

Comments

Popular posts from this blog

Multi-part Upload to S3 programmatically in .Net using C#

True Multi-Factor Authentication

How to install Kaldi-ASR on Ubuntu 18