Skip to content

Commit a0b29e9

Browse files
authored
fix(CLI): allow SSO profiles to be used as source profiles (#20340)
SSO profiles can now be used as source profiles. Fixes #19897. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 7eda256 commit a0b29e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: packages/aws-cdk/lib/api/aws-auth/aws-sdk-inifile.ts

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export class PatchedSharedIniFileCredentials extends AWS.SharedIniFileCredential
132132
);
133133
}
134134

135+
if (sourceProfileExistanceTest.sso_start_url) {
136+
return new AWS.SsoCredentials({ profile: sourceProfile });
137+
}
138+
135139
return new AWS.SharedIniFileCredentials(
136140
(AWS as any).util.merge(this.options || {}, {
137141
profile: sourceProfile,

0 commit comments

Comments
 (0)