Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

@aws-sdk/shared-ini-file-loader

Package Overview
Dependencies
2
Maintainers
5
Versions
85
Issues
File Explorer

Advanced tools

@aws-sdk/shared-ini-file-loader

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/shared-ini-file-loader/latest.svg)](https://www.npmjs.com/package/@aws-sdk/shared-ini-file-loader) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/shared-ini-file-loader.svg)](https://www.npmj

    3.257.0latest
    Github

Version published
Maintainers
5
Weekly downloads
8,222,510
increased by9.9%

Weekly downloads

Changelog

Source

3.257.0 (2023-01-24)

Features

  • client-databrew: Enabled FIPS us-gov-west-1 endpoints in SDK. (c22758d)
  • client-route-53: Amazon Route 53 now supports the Asia Pacific (Melbourne) Region (ap-southeast-4) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. (98c0783)
  • client-ssm-sap: This release provides updates to documentation and support for listing operations performed by AWS Systems Manager for SAP. (dd335a9)
  • middleware-api-key: add new auth middleware (#4012) (bdf7a59)

Readme

Source

@aws-sdk/shared-ini-file-loader

NPM version NPM downloads

AWS Shared Configuration File Loader

This module provides a function that reads from AWS SDK configuration files and returns a promise that will resolve with a hash of the parsed contents of the AWS credentials file and of the AWS config file. Given the sample files below, the promise returned by loadSharedConfigFiles would resolve with:

{ configFile: { 'default': { aws_access_key_id: 'foo', aws_secret_access_key: 'bar', }, dev: { aws_access_key_id: 'foo1', aws_secret_access_key: 'bar1', }, prod: { aws_access_key_id: 'foo2', aws_secret_access_key: 'bar2', }, 'testing host': { aws_access_key_id: 'foo4', aws_secret_access_key: 'bar4', } }, credentialsFile: { 'default': { aws_access_key_id: 'foo', aws_secret_access_key: 'bar', }, dev: { aws_access_key_id: 'foo1', aws_secret_access_key: 'bar1', }, prod: { aws_access_key_id: 'foo2', aws_secret_access_key: 'bar2', } }, }

If a file is not found, its key (configFile or credentialsFile) will instead have a value of an empty object.

Supported configuration

You may customize how the files are loaded by providing an options hash to the loadSharedConfigFiles function. The following options are supported:

  • filepath - The path to the shared credentials file. If not specified, the provider will use the value in the AWS_SHARED_CREDENTIALS_FILE environment variable or a default of ~/.aws/credentials.
  • configFilepath - The path to the shared config file. If not specified, the provider will use the value in the AWS_CONFIG_FILE environment variable or a default of ~/.aws/config.

Sample files

~/.aws/credentials

[default] aws_access_key_id=foo aws_secret_access_key=bar [dev] aws_access_key_id=foo2 aws_secret_access_key=bar2 [prod] aws_access_key_id=foo3 aws_secret_access_key=bar3

~/.aws/config

[default] aws_access_key_id=foo aws_secret_access_key=bar [profile dev] aws_access_key_id=foo2 aws_secret_access_key=bar2 [profile prod] aws_access_key_id=foo3 aws_secret_access_key=bar3 [profile "testing host"] aws_access_key_id=foo4 aws_secret_access_key=bar4

FAQs

What is @aws-sdk/shared-ini-file-loader?

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/shared-ini-file-loader/latest.svg)](https://www.npmjs.com/package/@aws-sdk/shared-ini-file-loader) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/shared-ini-file-loader.svg)](https://www.npmj

Is @aws-sdk/shared-ini-file-loader popular?

The npm package @aws-sdk/shared-ini-file-loader receives a total of 7,878,136 weekly downloads. As such, @aws-sdk/shared-ini-file-loader popularity was classified as popular.

Is @aws-sdk/shared-ini-file-loader well maintained?

We found that @aws-sdk/shared-ini-file-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 5 open source maintainers collaborating on the project.

Last updated on 24 Jan 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc