-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Athena 1.93 broken with assumed roles #3110
Comments
We're sorry you've run into that - this looks like a potential regression introduced by accountId endpoints which assumed that the configured credentials were an AWS SDK for Ruby Credentials object, rather than the response returned by clients. In general, we recommend that you use supported credentials objects - in this case, you can use the AssumeRoleCredentials which will give you automatic refreshing of the credentials as well! We will investigate a solution as well. |
... Yeah, I was about to say that it actually seems ok if I pass an ::Aws::AssumeRoleCredentials rather than the assume_role response. Thanks for the tip - I'll look into moving to AssumeRoleCredentials everywhere. |
Sorry about this. The credentials option is documented to be a credentials provider type or an Aws::Credentials. It's kind of confusing to distinguish those two things and something we hope to fix in a major version. |
Unless there are more reports of this, I'm inclined not to make a change. We do document already that credentials should be classes from core (credentials provider for example). |
That sounds reasonable. I was trying to find out where I got the |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
With Athena 1.93, trying to perform requests with an assumed role breaks with
undefined method 'account_id'
.Regression Issue
Expected Behavior
Requests succeed when using an assumed role
Current Behavior
Reproduction Steps
run with, eg,
Possible Solution
No response
Additional Information/Context
This works fine with v1.92 of the aws-sdk-athena gem
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-athena 1.93.0
aws-sdk-core 3.207.0
Environment details (Version of Ruby, OS environment)
ruby 3.2.4
The text was updated successfully, but these errors were encountered: