UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

17 lines (16 loc) 452 B
import { fromNodeProviderChain } from '@aws-sdk/credential-providers'; /** * Get AWS credentials provider * @param awsConfiguration * @returns */ function getCredentialsProvider(awsConfiguration) { return fromNodeProviderChain({ clientConfig: { region: awsConfiguration.region }, profile: awsConfiguration.profile, roleArn: awsConfiguration.role, }); } export const AwsCredentials = { getCredentialsProvider, };