lumigo-io / lumigo-CLI

Open source CLI tool to help you develop and manage serverless applications.
https://lumigo.io
Apache License 2.0
331 stars 21 forks source link

Support SSO authentication #101

Open ljacobsson opened 4 years ago

ljacobsson commented 4 years ago

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.

urz9999 commented 3 years ago

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.

iainelder commented 2 years ago

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

benkehoe commented 2 years ago

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