aws-sdk-config-loader
AWS config file loader for CLI tools.
this library load ~/.aws/config
that aws-sdk-js is not supported.
Installation
npm install aws-sdk-config-loader aws-sdk
Usage
API Document: https://moqada.github.io/aws-sdk-config-loader/
put following ~/.aws/credentials
[default]
aws_access_key_id = default_key_id
aws_secret_access_key = default_secret_key
[foo]
aws_access_key_id = foo_key_id
aws_secret_access_key = foo_secret_key
put following ~/.aws/config
.
[default]
region = ap-northeast-1
[foo]
region = us-east-1
import AWS from 'aws-sdk';
import loader from 'aws-sdk-config-loader';
loader(AWS);
loader(AWS);
loader(AWS);
loader(AWS, {profile: 'foo'})
loader(AWS, {profile: 'foo', noReflectCredentials: true})