Skip to main content

Utility to help me manage my AWS CLI Session with Profiles, Roles and MFA

Project description

AWSee


AWSee

Command line tool that helps handle multiple AWS Account Credentials (its Roles and MFAs), when working with AWSCLI sessions.

It opens and controls AWS Sessions using a command-line tool, allowing performing one or all of the following tasks:

  • Start session using a MFA Token
  • Assume a Role
  • Open a session in the same or another terminal window
  • Keep track of session information (expiration)
  • "Injects" alias/DOSKEY commands in your opened session, that's configurable. Entries in file, examples:
    • alias s3='aws s3 ls'
    • alias info='awsee -i'

Plus, it also tries (if allowed by your AWS Polices) automatically bring and save locally information about your MFA-Devices to be used later on.

When not possible to retrieve account information automactically (due to security reasons), you still can register it locally using this tool. You can save and keep them updated, to help to deal with your AWS Sessions, like:

  • MFA-Devices
  • Roles

Save and mantain your credential profiles associated with their respective Roles and MFA Devices. You can use the command "synchronize" to remotely bring this information (if allowed by your AWS Polices), check help documentation. AWSee


The complete help/manual is available inside the AWSee tool itself, check it out:

# To show a short version...
$:~ awsee -h

# Show how to use, see below:
$:~ awsee -u
awsee [TOKEN-MFA] [-p profile] [-r role] [-nt or --new-term]
Examples:
  awsee 857946                   Open AWS Session with default profile with your six-digit MFA Token     
  awsee 857946 -p infra          Open AWS Session with the passed profile using your six-digit MFA Token
  awsee 857946 -p infra -r prod  Open AWS Session with the passed profile using your six-digit MFA Token
                                 and immediatelly assume the passed role at this new session
  awsee                          Open AWS Session with default profile, it will check if needs MFA
  awsee -p dev                   Open AWS Session with the passed profile, asks for MFA if needed
  awsee -r developer             Assume a Role inside the current AWS Session
  awsee -p dev  -r developer     Open AWS Session with the passed profile, and following assume the role
  awsee -p prod -r admin         Open AWS Session with the passed profile, and following assume the rol
  awsee -nt or --new-terminal    When opening an AWS Session, will do it in a new terminal
  awsee -h  or --help            Show this and all auxiliary functions (use --help for more information)
  awsee -u  or --usage           Show only how to use, not the auxiliary function
  awsee [FUNCTION]               Execute an auxiliary function, see below for all available options

# Use the awsee --help to see all the functions and their usage

# More things...
# At the folder ~/.awsee/ you'll find two files that you can customize a few more things:
# ~/.awsee/awsee.ini
### --> Colors on/off
### --> Emoticons on/off
### --> At Windows, the New Terminal to be used (CMD, CMDER or GitBash)
# ~/.awsee/alias/alias_awsee.txt
### --> Add/Remove here your ALIAS/DOSKEYS (Linux/Windows) for new opened sessions, things like:
### ----> DOSKEY ec2=aws ec2 describe-instances --query Reservations[*].Instances[*].InstanceId --output table
### ----> DOSKEY s3=aws s3 ls
### ----> DOSKEY ssmfrodo=aws ssm start-session --target "i-0452a94919225f816"

For more information and details, check here:

AWSee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awsee-0.0.28.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

awsee-0.0.28-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file awsee-0.0.28.tar.gz.

File metadata

  • Download URL: awsee-0.0.28.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for awsee-0.0.28.tar.gz
Algorithm Hash digest
SHA256 acf054d433371971a918c2fb97007a81d22ac9d283d648b31a0d0945e834a283
MD5 6cde4e49aa4223734041bc6e41f9bb40
BLAKE2b-256 d59ebb5ba8ceb8120a2291d8af128685bfe3fd038ac6039507e270099ec22358

See more details on using hashes here.

File details

Details for the file awsee-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: awsee-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 46.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for awsee-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 9bdeeddf65984cd9e1783f1c958b55680468f3b4fe04f4d76250581c3775c7f2
MD5 c4fa38800f25e90e88464789c9541eac
BLAKE2b-256 4489f9c9abd7c15a98011ee9a2e6d34a99a84cb7be0d917d99c87bea9ad811d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page