Profile provider doesn't work with aws configure sso
output
#741
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to 'closing-soon' in 7 days.
Describe the bug
The file provider does not work with credentials configured with
aws configure sso
. Instead you must copy the following fields into the profile (rather than sourcing the session)sso_region
sso_start_url
sso_registration_scopes
and remove the source of the sso-session. At which point you then have to
aws sso login
to get some fresh credentials in the cache.Expected Behavior
Considering this is an official project, the file provider should work with the standardised profile and sso-session configuration
Current Behavior
It does not inherit the settings from the source
Reproduction Steps
aws configure sso
^ Bug should be pro
Possible Solution
sso_region
into profilesso_start_url
into profilesso_registration_scopes
into profilesource
aws sso login
manual fix of aws config required to avoid the issue for now, but this should work with standard setups that the aws cli generates
Additional Information/Context
I created my profile as default, but other profile names do not work either. My suspicion is it's the
source
of the sso-session which it's not merging the required sso fields inVersion
Environment details (OS name and version, etc.)
aws-cli/2.9.15
Logs
Error: Unhandled(Unhandled { source: ConstructionFailure(ConstructionFailure { source: CredentialsStageError { source: InvalidConfiguration(InvalidConfiguration { source: "ProfileFile provider could not be built: profile
default
was not defined:sso_region
was missing" }) } }) })The text was updated successfully, but these errors were encountered: