EasyManua.ls Logo

Amazon AWS SDK

Amazon AWS SDK
19 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Configuration Guide
The Configuration Object
Configuration in the SDK can be done in two ways:
1. Global configuration on AWS.config, or,
2. Passing extra configuration to a service object
Setting global configuration with AWS.config is often easier to get up and running with, but service level
configuration can provide much more control over your requests. Both of these configuration mechanisms
are discussed.
Global Configuration (AWS.config)
By default, you can set global configuration by updating the AWS.config object with new settings.The
most common settings are:
accessKeyId, secretAccessKey, sessionToken — for credential management
region — to set the region for requests
sslEnabled — whether SSL is enabled or not
maxRetries — to control the number of retries for a request
The only things you need to set in order to use the SDK are credentials and the region value. Let's discuss
how to do that.
Setting AWS Credentials
Note
Remember, if you set your AWS credentials in your environment variables, the AWS SDK for
Node.js will automatically detect them, and you will not need to perform any manual credential
configuration in your application.
Version 0.9.1-pre.2 : Preview
4
AWS SDK for Node.js Getting Started Guide
The Configuration Object

Related product manuals