created the PathHandler class to take care of all the paths operations, detached from the containers logic
re-written the aws-sso-configure.sh script into the python function configure_sso_profiles
re-written the aws-sso-entrypoint.sh script into the python function refresh_layer_credentials
This refactor introduce a change in the way we treat profiles. Now the name of the profile doesn't have the role as a suffix, since we assume there is only one allowed role per account. The benefit of it is, it simplify logic, and doesn't break the refresh on a layer with multiple roles involved (like in mgmt/sso).
References
closes #220
Before release
It contains breaking changes so must be released as a major version.
You must run leverage aws configure sso before running any SSO command in order to use the new profiles structure.
What?
PathHandler
class to take care of all the paths operations, detached from the containers logicaws-sso-configure.sh
script into the python functionconfigure_sso_profiles
aws-sso-entrypoint.sh
script into the python functionrefresh_layer_credentials
This refactor introduce a change in the way we treat profiles. Now the name of the profile doesn't have the role as a suffix, since we assume there is only one allowed role per account. The benefit of it is, it simplify logic, and doesn't break the refresh on a layer with multiple roles involved (like in
mgmt/sso
).References
closes #220
Before release
It contains breaking changes so must be released as a major version.
You must run
leverage aws configure sso
before running any SSO command in order to use the new profiles structure.