Skip to content

Commit 5d19afb

Browse files
authored
fix: stop erroneously conflating shared config profile names and IMDS profile names (#1671)
1 parent 663c96e commit 5d19afb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "28142253-648c-44bf-a474-119a7b97d3be",
3+
"type": "bugfix",
4+
"description": "Stop erroneously using `ProfileCredentialsProvider.profileName` to initialize IMDS instance profile"
5+
}

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public class ProfileCredentialsProvider @InternalSdkApi constructor(
106106
private val namedProviders = mapOf(
107107
"Environment" to EnvironmentCredentialsProvider(platformProvider::getenv),
108108
"Ec2InstanceMetadata" to ImdsCredentialsProvider(
109-
profileOverride = profileName,
110109
client = lazy {
111110
ImdsClient {
112111
platformProvider = this@ProfileCredentialsProvider.platformProvider

0 commit comments

Comments
 (0)