Skip to content
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

should assume_role_with_web_identity work even without AWS credentials being found? #616

Open
schlichtanders opened this issue Apr 27, 2023 · 2 comments

Comments

@schlichtanders
Copy link

I just installed AWS.jl and want to use it for assume_role_with_web_identity. While the equivalent command line version works without complaining, AWS.jl errors:

julia> Sts.assume_role_with_web_identity(role_arn, role_session_name, web_identity_token)
ERROR: Can't find AWS credentials!

assume_role_with_web_identity is indeed special in that it shouldn't need any aws credentials for working.
Is there some workaround to specify nocredentials?

@schlichtanders
Copy link
Author

It seems I found a quick workaround by defining an empty AWSConfig. It seems you need to default for some region.

aws_config = AWS.AWSConfig(nothing, "eu-central-1", "json", AWS.AWS_MAX_RETRY_ATTEMPTS)
Sts.assume_role_with_web_identity(role_arn, role_session_name, web_identity_token; aws_config)

@schlichtanders schlichtanders changed the title BUG: assume_role_with_web_identity should work even without AWS credentials being found should assume_role_with_web_identity work even without AWS credentials being found? Apr 27, 2023
@schlichtanders
Copy link
Author

I guess this is the intended behaviour. If so, this can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant