lumigo-CLI
lumigo-CLI copied to clipboard
Support SSO authentication
I want to be able to use lumigo-cli using AWS Single Sign-On auth, but it doens't appear to be working.
To reproduce:
- run
aws sso login
- run
lumigo-cli list-lambda
There's no official sdk support for it yet. In our tools we use this one until there's official support.
In case like this one or other similar cases where AWS SSO result in incompatibilities with your library and you don't want to play with workarounds or complicated fixes, maybe you can give a try to our open-source project: https://github.com/Noovolari/leapp. It deals with AWS SSO authentication and accounts/roles retrieval then it creates short-lived temporary credentials in .aws/credentials to maximize compatibility with third party tools / sdks.
Lumigo is using version 2.584.0 of aws-sdk.
https://github.com/lumigo-io/lumigo-CLI/blob/f1dca979fcc27e2d7b974b13579c5a83dcd6cf74/package.json#L20
SSO support was added in version 3.7.0, released on 2021-02-25.
https://github.com/aws/aws-sdk-js-v3/issues/1158
https://github.com/aws/aws-sdk-js-v3/blob/main/CHANGELOG.md#370-2021-02-25
It would be convenient if you could update the SDK dependency to allow me to use SSO credentials as @ljacobsson describes.
In the meantime, I use aws2-wrap as a workaround.
https://github.com/linaro-its/aws2-wrap
AWS SSO support has been added to the v2 SDK as of version 2.1093.0