Skip to content

AWS CLI

Posted on:September 15, 2022 at 05:37 PM

tp.web.random_picture

My notes on AWS CLI.

Table of contents

Open Table of contents

What is AWS CLI?

Check the AWS CLI version

$ aws --version
aws-cli/2.7.32 Python/3.9.11 Darwin/19.6.0 exe/x86_64 prompt/off

AWS CLI Configuration & Named Profiles

$ aws configure --profile admin
AWS Access Key ID [None]: AKIAI44QH8DHBEXAMPLE
AWS Secret Access Key [None]: je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY
Default region name [None]: us-east-1
Default output format [None]: text

Check this Named profiles for AWS CLI guide for more details.

Using named profile

$ export AWS_PROFILE=admin

Change output format

$ export AWS_DEFAULT_OUTPUT=json

References