-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assuming a role from the config #30
Comments
It shouldn't be too difficult to emulate this feature. In this function: AWSCore.jl/src/AWSCredentials.jl Line 262 in d3a8ca4
... we'd have to:
STS AssumeRole can be called like this: using AWSCore.Services.sts
sts([::AWSConfig], "AssumeRole", RoleArn=, RoleSessionName=) https://juliacloud.github.io/AWSCore.jl/build/AWSSDK.STS.html#AWSSDK.STS.assume_role and should return something like this: Dict(
"AssumedRoleUser" => Dict(
"Arn" => "arn:aws:sts::123456789012:assumed-role/demo/Bob",
"AssumedRoleId" => "ARO123EXAMPLE123:Bob"
),
"Credentials" => Dict(
"AccessKeyId" => "AKIAIOSFODNN7EXAMPLE",
"Expiration" => "2011-07-15T23:28:33.359Z",
"SecretAccessKey" => "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
"SessionToken" => "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
),
"PackedPolicySize" => 6
) I have other priorities at the moment. But I'm happy to help out with any issues you have if you'd like to submit a PR. |
Thanks. I also have some other priorities but I at least wanted to make the issue so this doesn't get forgotten :) |
When using AWS CLI you can specify in the configuration file a
role_arn
and asource_profile
which allow you to have a profile that automatically assumes a role:Trying to use this with
AWSCore
results in the credentials being not found.The text was updated successfully, but these errors were encountered: