Giter Site home page Giter Site logo

Comments (6)

StoneDot avatar StoneDot commented on May 18, 2024

Currently, dynein uses rusoto to load AWS credentials. And it seems that you use aws-azure-login. It looks like that aws-azure-login generates ~/.aws/credentials as described on docs.

It lets you use the normal Azure AD login (including MFA) from a command line to create a federated AWS session and places the temporary credentials in the proper place for the AWS CLI and SDKs.

Could you check if your ~/.aws/credentials is created correctly?

from dynein.

wahlfeld10x avatar wahlfeld10x commented on May 18, 2024

Currently, dynein uses rusoto to load AWS credentials. And it seems that you use aws-azure-login. It looks like that aws-azure-login generates ~/.aws/credentials as described on docs.

It lets you use the normal Azure AD login (including MFA) from a command line to create a federated AWS session and places the temporary credentials in the proper place for the AWS CLI and SDKs.

Could you check if your ~/.aws/credentials is created correctly?

Sure, see below. It looks okay to me.

> aws-azure-login --profile <redacted> --no-prompt

Logging in with profile '<redacted>'...
Using AWS SAML endpoint https://signin.aws.amazon.com/saml
Assuming role arn:aws:iam::<redacted>:role/<redacted>

> cat $HOME/.aws/credentials | grep <redacted> -A 4

aws_access_key_id=<redacted>
aws_secret_access_key=<redacted>
aws_session_token="<redacted>"
aws_expiration=2022-09-19T02:31:30.000Z

from dynein.

wahlfeld10x avatar wahlfeld10x commented on May 18, 2024

I've just gotten it working. It seems dy doesn't work when using source_profile. E.g.

> aws-azure-login --profile foo --no-prompt
Logging in with profile 'foo'...
Using AWS SAML endpoint https://signin.aws.amazon.com/saml
Assuming role arn:aws:iam::123/foo

> export AWS_PROFILE=foo

> dy ls
(works)

~/.aws/config
[profile bar]
source_profile=foo
role_arn=arn:aws:iam::123:role/foo
[email protected]
region=eu-west-1

> export AWS_PROFILE=bar

> dy ls
(doesn't work)

from dynein.

StoneDot avatar StoneDot commented on May 18, 2024

It makes sense. It seems that rusoto does not support source_profile. See the issue for detail. Additionally, it looks like that AWS SDK for Rust support source_profile. Thus, to support your use-case, we should change codes to use AWS SDK for Rust instead of rusoto. The update to AWS SDK for Rust is tracked by #51.

I will close this issue because we determined the root cause, which should be treated as a feature request of #51. Please feel free to reopen if you have any concerns regarding this issue.

from dynein.

wahlfeld10x avatar wahlfeld10x commented on May 18, 2024

It makes sense. It seems that rusoto does not support source_profile. See the issue for detail. Additionally, it looks like that AWS SDK for Rust support source_profile. Thus, to support your use-case, we should change codes to use AWS SDK for Rust instead of rusoto. The update to AWS SDK for Rust is tracked by #51.

I will close this issue because we determined the root cause, which should be treated as a feature request of #51. Please feel free to reopen if you have any concerns regarding this issue.

OK thanks for explaining that. The issue you linked is nearly 3 years old ... is there any ETA from AWS to support this?

from dynein.

StoneDot avatar StoneDot commented on May 18, 2024

There is no ETA currently because AWS SDK for Rust is still developer preview. Unfortunately, we don't have enough bandwidth to support both SDK at the time.

from dynein.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.