Class

AWSOsduSSMCredentialProvider

AWSOsduSSMCredentialProvider(params)

Credenial provider class that provides Cognito username and password from AWS SSM parameters

Constructor

# new AWSOsduSSMCredentialProvider(params)

Parameters:
Name Type Attributes Description
params Object

AWS configuration and SSM parameters

aws_region string

The AWS region in which the OSDU application is deployed

aws_profile string <optional>

The AWS credential profile to use when making requests to SSM (typically only for local development)

username_parameter string

SSM parameter identifier where the Cognito username is stored

password_parameter string

SSM parameter identifier where the Cognito password is stored

View Source client/aws/ssmCredentialProvider.js, line 10

Methods

# GetCredentials() → {Promise.<Object>|string|string}

Fetch credentials from SSM and serve dynamically

  • Configures AWS SDK to use provided credentials for local development or automatic credentials for hosted applications
  • Brokers communication with AWS SSM to retrieve Username/Password parameters

View Source client/aws/ssmCredentialProvider.js, line 34

credentials - Promise resolving with Cognito username and password

Promise.<Object>

credentials.username - Cognito username

string

credentials.password - Cognito password

string
new AWSOsduSSMCredentialProvider

Methods