in signer/msk_auth_token_provider.go [132:143]
func loadCredentialsFromProfile(ctx context.Context, region string, awsProfile string) (*aws.Credentials, error) {
cfg, err := config.LoadDefaultConfig(ctx,
config.WithRegion(region),
config.WithSharedConfigProfile(awsProfile),
)
if err != nil {
return nil, fmt.Errorf("unable to load SDK config: %w", err)
}
return loadCredentialsFromCredentialsProvider(ctx, cfg.Credentials)
}