You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt
+31-38Lines changed: 31 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ public class ProfileCredentialsProvider @InternalSdkApi constructor(
129
129
val profileOverride = profileName?.let { sharedConfig.profiles[it] }
130
130
val region = asyncLazy { region ?: profileOverride?.getOrNull("region") ?: attributes.getOrNull(AwsClientOption.Region) ?: resolveRegion(platformProvider) }
131
131
132
-
val leaf = chain.leaf.toCredentialsProvider(region, attributes)
132
+
val leaf = chain.leaf.toCredentialsProvider(region)
133
133
logger.debug { "Resolving credentials from ${chain.leaf.description()}" }
134
134
var creds = leaf.resolve(attributes)
135
135
@@ -157,59 +157,52 @@ public class ProfileCredentialsProvider @InternalSdkApi constructor(
0 commit comments