main#

todo: docstring

class aws_resource_search.cli.main.ArsCli[source]#

AWS Resource Search CLI.

Search AWS resource in terminal, just like you are using AWS Console in web browser.

You can do things like:

  • open aws console url

  • copy information to clipboard

  • view aws resource details in terminal

For full documentation, please view https://github.com/MacHu-GWU/aws_resource_search-project

Usage:

  • ars: enter the AWS resource search interactive UI

  • ars -v: show the version of this tool

  • ars -h: show this help message

  • ars ${{sub_command}}: run the given sub command. See “COMMANDS” section below.

which()[source]#

Show AWS account id, alias, region of the current boto3 session.

Usage:

ars which, print the AWS account id, alias, region of the current boto3 session. Example:

$ ars which
AWS Account ID = 123456789012
AWS Account Alias = my-aws-account-alias
AWS Region = us-east-1
set_profile()[source]#

Set one of your AWS named profile as default profile for ARS UI.

Usage:

clear()[source]#

Clear all index and cache of this App.

Usage:

  • ars clear: clear all index and cache of this App.

aws_resource_search.cli.main.run()[source]#

The entry point of this CLI tool.