aspd

1.2.2 • Public • Published

Amazon Switch Profile Default - simple cli for switchin between aws profiles through the [default] credential section.

Description:

An alternative to standart aws asp utility, that switches across multiple profiles rewriting the default one.

Instalation:

npm install -g aspd

Usage:

Profile switching:

At the first place your ~/.aws/credentials file should have the structure similar to this:

[default]
aws_access_key_id  = **********
aws_secret_access_key  = **********
[profile_1]
aws_access_key_id  = **********
aws_secret_access_key  = **********
[profile_2]
aws_access_key_id  = **********
aws_secret_access_key  = **********
[profile_3]
aws_access_key_id  = **********
aws_secret_access_key  = **********

If you have an ~/.aws/config file its struct assums to be like this:

[default]
region  = ********
[profile_1]
region  = ********
[profile_2]
region  = ********
[profile_3]
region  = ********
aspd

Then just choose profile that you want to use as default.

Add new profile:

aspd add

Then just folow the flow.

!!! Reminder !!:

Your default profile will be rewriten with the chosen one, so don't forget to save it if you need.

TODO:

  • Use AWS_CONFIG_FILE & AWS_SHARED_CREDENTIALS_FILE env variables as an alternative files paths.

Readme

Keywords

Package Sidebar

Install

npm i aspd

Weekly Downloads

0

Version

1.2.2

License

ISC

Unpacked Size

6.58 kB

Total Files

3

Last publish

Collaborators

  • tesslime