diff --git a/config/resolve_credentials_test.go b/config/resolve_credentials_test.go index adb8f2c8d1e..3e128966d9c 100644 --- a/config/resolve_credentials_test.go +++ b/config/resolve_credentials_test.go @@ -577,8 +577,9 @@ func TestResolveCredentialsIMDSClient(t *testing.T) { opts := []func(*LoadOptions) error{ WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }), WithHTTPClient(httpClient), - WithSharedConfigProfile("profile-name"), - WithSharedConfigFiles([]string{"creds-file"}), + // separate from the local config, should it exist - the default loader will ignore nonexistent profiles + WithSharedConfigProfile(" "), + WithSharedConfigFiles([]string{}), } if tc.enabledState != imds.ClientDefaultEnableState {