awsenv

command module
v0.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

awsenv

AWS cli profile switcher.

awsenv lists the content of the aws credentials and config files in a better readable format and makes it easier to switch the default profile.

Install:

Windows

Using Choco

$ choco install awsenv
MacOS

Using Homebrew (details to follow)

Usage:

List all available profiles:
$ awsenv

or

$ awsenv list

Output:

  PROFILE     AWS_ACCESS_KEY_ID       REGION       OUTPUT    
  personal    ****************LDIA    us-east-1    text          
* office      ****************NQPA    [us-east-1]  [json]      

Profiles with * are active profiles.

Profiles with region or output in [] are using the default config.

Activate a given profile:
$ awsenv activate <profile>

Example:

$ awsenv activate personal

$ awsenv 
  PROFILE     AWS_ACCESS_KEY_ID       REGION       OUTPUT    
* personal    ****************LDIA    [us-east-1]  [json]          
  office      ****************NQPA    us-east-1    text      

The activate command changes the [default] section in the credentials file.

The activate command DOES NOT modify the config file.

Create new profile:

Use the aws cli to create a new profile

$ aws configure
Help:
$ awsenv help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL