SDK fails to use SSO credentials configured via aws configure sso
#2894
Labels
bug
This issue is a bug.
aws configure sso
#2894
Describe the bug
After configuring a profile using
aws configure sso --profile PROFILENAME
, theaws
CLI tool can use the configured profile usingaws --profile PROFILENAME
without trouble (all commands that I've tried work), but the AWS SDK for Ruby fails with an error, when trying to configure it with that profile.Expected Behavior
Setting the named profile through the
Aws.config
options should work for SSO profile as well as it does for static profiles:Current Behavior
Trying to initialize an AWS client with an SSO profile, we get an error:
sso-session My Profile must be defined in the config file. Referenced by profile PROFILENAME (ArgumentError)
Reproduction Steps
Possible Solution
I have yet to find a fix for this. From reviewing the
lib/aws-sdk-core/shared_config.rb
file, I don't understand how SSO credentials are properly initialized, but it seems to be only when trying to "assume a role" (which I'm not sure when is that workflow triggered).Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core
Environment details (Version of Ruby, OS environment)
Ruby 3.1.0 on Ubuntu Lunar
The text was updated successfully, but these errors were encountered: