
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
aws-config
Advanced tools
Reduce boilerplate code when configuring the AWS Node.js SDK. http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html
Takes care of the following:
HTTPS_PROXY
environment variable exists..aws/credentials
file if profile
option specifiedAWS_TIMEOUT
environment variable to enforce a maximum timeout for all AWS SDK operationsAWS_DEFAULT_PROFILE
and AWS_DEFAULT_REGION
environment variables used by the AWS CLI.AWS_WEB_IDENTITY_TOKEN_FILE
environment variable used for web token based authentication for kubernetes service accountsnpm install aws-config
awsConfig({
region: 'us-east-1' // explicitly set AWS region
sslEnabled: true, // override whether SSL is enabled
maxRetries: 3, // override the number of retries for a request
accessKeyId: 'your_aws_access_key', // can omit access key and secret key
secretAccessKey: 'your_secret_key' // if relying on a profile or IAM
profile: 'profile_name', // name of profile from ~/.aws/credentials
timeout: 15000 // optional timeout in ms. Will use AWS_TIMEOUT
});
var AWS = require('aws-sdk');
var awsConfig = require('aws-config');
// demonstrating different sample usage at the individual service level
var s3 = new AWS.S3(awsConfig({accessKeyId: '123', secretAccessKey: 'abc'}));
var ec2 = new AWS.EC2(awsConfig({profile: 'aws-profile-name'}));
var dynamo = new AWS.DynamoDB(awsConfig({timeout: 5000}));
// you can also set the AWS config globally and use empty constructors on
// individual services.
AWS.config = awsConfig();
var s3 = new AWS.S3();
FAQs
Encapsulates boilerplate AWS config setup
The npm package aws-config receives a total of 2,672 weekly downloads. As such, aws-config popularity was classified as popular.
We found that aws-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.