lumigo-CLI icon indicating copy to clipboard operation
lumigo-CLI copied to clipboard

Support SSO authentication

Open ljacobsson opened this issue 4 years ago • 3 comments

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:

  1. run aws sso login
  2. 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.

ljacobsson avatar Aug 27 '20 15:08 ljacobsson

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.

urz9999 avatar Jan 14 '21 10:01 urz9999

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

iainelder avatar Dec 14 '21 15:12 iainelder

AWS SSO support has been added to the v2 SDK as of version 2.1093.0

benkehoe avatar Mar 15 '22 20:03 benkehoe