7 lines
413 B
JavaScript
7 lines
413 B
JavaScript
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
|
import { resolveProcessCredentials } from "./resolveProcessCredentials";
|
|
export const fromProcess = (init = {}) => async () => {
|
|
init.logger?.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
|
const profiles = await parseKnownFiles(init);
|
|
return resolveProcessCredentials(getProfileName(init), profiles);
|
|
};
|