We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2025db0 commit 11497f2Copy full SHA for 11497f2
src/Credentials/CredentialProvider.php
@@ -705,6 +705,12 @@ private static function loadRoleProfile(
705
$sourceProfileName = "";
706
if (!empty($roleProfile['source_profile'])) {
707
$sourceProfileName = $roleProfile['source_profile'];
708
+ # in ~/.aws/config all the named profile (except 'default') are
709
+ # prefix with 'profile '
710
+ if ($filename == (self::getHomeDir() . '/.aws/config') &&
711
+ $sourceProfileName != 'default') {
712
+ $sourceProfileName = 'profile ' . $sourceProfileName;
713
+ }
714
if (!isset($profiles[$sourceProfileName])) {
715
return self::reject("source_profile " . $sourceProfileName
716
. " using profile " . $profileName . " does not exist"
0 commit comments