Comments (6)
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.
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.
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.
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.
It makes sense. It seems that
rusoto
does not supportsource_profile
. See the issue for detail. Additionally, it looks like that AWS SDK for Rust supportsource_profile
. Thus, to support your use-case, we should change codes to use AWS SDK for Rust instead ofrusoto
. 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.
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)
- Set bootstrap data locally instead of downloading HOT 1
- export command cause panic when table doesn't have items
- Implement IaC feature enpowered by CloudFormation HOT 4
- [test] Improve setup function
- `cargo test` failed due to difference in command output on windows environment HOT 1
- Implement sophisticated parser for put command HOT 1
- Implement sophisticated parser for query command
- Implement sophisticated parser for bwrite command HOT 1
- `bwrite` command does not support binary data types HOT 1
- `desc_all_tables` integration test sometimes fails HOT 1
- Race condition of loading config cause EndOfStream HOT 1
- Allow Full Attributes on Query or Scan HOT 5
- Dynein format does not accept valid JSON string HOT 1
- Add format option to show dynein format
- Inference preferable format based on the situation
- Support DynamoDB JSON for import/export table HOT 3
- Add base64 literal for binary type to dynein format HOT 1
- Specify target OS for creating binaries
- Create a option like `EXPLAIN` of SQL to check actual JSON parameter
- Support retry when batch write items HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynein.