Skip to content

Releases: techservicesillinois/awscli-login

v1.0

11 Mar 17:13
a3a0725

Choose a tag to compare

Changes

This release fully supports both AWS CLI V1 and V2. The plugin can be used with AWS CLI V1 and V2 at the same time, but due to incompatibilities V1 and V2 cannot share ~/.aws/config. We recommend configuring the plugin for V1 and logging in and out with V1 as documented in the README. With this setup, both V1 and V2 can share credentials generated by awscli-login.

The daemon process has been removed and replaced with a script aws-login. Each AWS CLI profile that is managed by the awscli-login plugin, must contain a reference in ~/.aws/credentials to the script aws-login. For example:

[default]
credential_process = aws-login --profile default

[prod]
credential_process = aws-login --profile prod

This can be done by hand for each profile, or it can be done using aws login configure once for each profile as documented in the README. A new file ~/.aws-login/credentials is automatically generated to cache login credentials. The ~/.aws-login/log directory is no longer used by awscli-login and may be safely removed. The format and contents of all other configuration files in ~/.aws and ~/.aws-login are unchanged.

Rollback

If you want to downgrade to a previous release, you need to remove the cli_legacy_plugin_path key and value in ~/.aws/config, if configured for AWS CLI V2:

[plugins]
login = awscli_login
cli_legacy_plugin_path = /Users/ddriddle/.pyenv/versions/3.11.11/lib/python3.11/site-packages

Further you need to remove references to credential_process for each profile configured for the plugin in ~/.aws/credentials:

[default]
credential_process = aws-login --profile default

These are the only changes required. You may also wish to remove ~/.aws-login/credentials since it is not used by previous releases. Now you may safely install the previous release:

$ pip install awscli-login==0.2b1