1.2.2 • Published 2 years ago

aspd v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.
1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago