code: function setAWSCredentialProviderChain({ profile }) {
    AWS.CredentialProviderChain.defaultProviders = [
      () => new AWS.EnvironmentCredentials('AWS'),
      () => new AWS.EnvironmentCredentials('AMAZON'),
      () => new AWS.SharedIniFileCredentials({ profile }),
      () => new AWS.EC2MetadataCredentials(),
    ]
  }
docs: Sets the default credential providers in order of precedence:
  1. Environment variables with prefix 'AWS'
  2. Environment variables with prefix 'AMAZON'
  3. AWS profile (from file system config)
  4. EC2 instance metadata service
  @param {String} param.profile - aws profile name
  @return {undefined}