Closed z0mbix closed 2 years ago
Thanks for reporting! We do not support parsing SSO credentials at this time, I have created a feature request for this.
FYI: Im using linaro-its/aws2-wrap as workaround.
Hi guys, maybe give a try to our project: Leapp, we recently added support for AWS SSO to help with incompatibilities with third party tools where you need to have credentials in standard .aws/credentials location to make them work. We manage AWS SSO login and retrieval of all the accounts/roles couple for you then we create short-lived temporary credentials in .aws/credentials file.
I ended up creating https://github.com/z0mbix/essh instead of using mssh. It supports AWS SSO from v0.0.5
onwards.
AWS SSO credentials with a recent pip install ec2instanceconnectcli
appears to be working.
Name: ec2instanceconnectcli
Version: 1.0.2
Summary: Command Line Interface for AWS EC2 Instance Connect
Home-page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html
Author: Amazon Web Services
Author-email: UNKNOWN
License: Apache License 2.0
Location: /home/user/.local/lib/python3.9/site-packages
Requires: cryptography, botocore
Required-by:
Reviewing the code it calls botocore.session.get_session()
which means support for aws sso is based on whether the dependency botocore supports sso profiles. As of botocore 1.14.0, aws sso profiles are supported. I was able to successful use mssh
to connect using aws sso with botocore 1.23.2.
pip install ec2instanceconnectcli
aws sso login --profile <your_sso_profile_config_name>
mssh --profile <your_sso_profile_config_name> --region <instance_region> <user>@<instance_id>
Thanks for reporting! We do not support parsing SSO credentials at this time, I have created a feature request for this.
What kind of joke is this? Official tool does not even follow the breaking changes from other teams.
I currently have SSO credentials using the command
aws sso login
, which work fine for aws cli (v2) commands, butmssh
does not support using these credentials: