Socket
Socket
Sign inDemoInstall

@aws-sdk/node-config-provider

Package Overview
Dependencies
4
Maintainers
5
Versions
118
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/node-config-provider


Version published
Maintainers
5
Created

Package description

What is @aws-sdk/node-config-provider?

The @aws-sdk/node-config-provider package is part of the AWS SDK for JavaScript. It provides utilities for loading configuration settings for AWS SDK clients in Node.js environments. This package helps in managing configuration options such as credentials, region, and other settings required to interact with AWS services.

What are @aws-sdk/node-config-provider's main functionalities?

Load Configuration from Environment Variables

This feature allows you to load configuration settings directly from environment variables. This is useful for managing sensitive information like AWS credentials and region settings without hardcoding them in your application.

const { fromEnv } = require('@aws-sdk/node-config-provider');
const config = fromEnv();
console.log(config);

Load Configuration from Shared Config Files

This feature enables loading configuration settings from shared AWS config files, typically located in the user's home directory. This is useful for managing multiple profiles and settings in a centralized manner.

const { fromSharedConfigFiles } = require('@aws-sdk/node-config-provider');
const config = fromSharedConfigFiles();
console.log(config);

Load Configuration from a Custom Source

This feature allows you to load configuration settings from a custom source, such as hardcoded values or a custom configuration file. This provides flexibility in how you manage and load your AWS configuration settings.

const { fromStatic } = require('@aws-sdk/node-config-provider');
const config = fromStatic({ region: 'us-west-2', credentials: { accessKeyId: 'AKIA...', secretAccessKey: 'SECRET...' } });
console.log(config);

Other packages similar to @aws-sdk/node-config-provider

Changelog

Source

3.272.0 (2023-02-15)

Features

  • client-cloudtrail: This release adds an InsufficientEncryptionPolicyException type to the StartImport endpoint (4253089)
  • client-frauddetector: This release introduces Lists feature which allows customers to reference a set of values in Fraud Detector's rules. With Lists, customers can dynamically manage these attributes in real time. Lists can be created/deleted and its contents can be modified using the Fraud Detector API. (6186c03)
  • client-glue: Fix DirectJDBCSource not showing up in CLI code gen (bedba23)
  • client-privatenetworks: This release introduces a new StartNetworkResourceUpdate API, which enables return/replacement of hardware from a NetworkSite. (804b9bc)
  • client-wafv2: For protected CloudFront distributions, you can now use the AWS WAF Fraud Control account takeover prevention (ATP) managed rule group to block new login attempts from clients that have recently submitted too many failed login attempts. (dc28d4e)
  • clients: update client endpoints as of 2023-02-15 (2e05ae8)

Readme

Source

@aws-sdk/node-config-provider

NPM version NPM downloads

FAQs

Last updated on 15 Feb 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc