Takes care of the following:
- Handles corporate proxy via https-proxy-agent if
HTTPS_PROXYenvironment variable exists.
- Utilize a named profile from
AWS_TIMEOUTenvironment variable to enforce a maximum timeout for all AWS SDK operations
- Honors the
AWS_DEFAULT_REGIONenvironment variables used by the AWS CLI.
npm install aws-config
var AWS = ;var awsConfig = ;// demonstrating different sample usage at the individual service levelvar s3 = ;var ec2 = ;var dynamo = ;// you can also set the AWS config globally and use empty constructors on// individual services.AWSconfig = ;var s3 = ;