Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-ini

Package Overview
Dependencies
10
Maintainers
5
Versions
323
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-ini


Version published
Weekly downloads
19M
decreased by-4.88%
Maintainers
5
Created
Weekly downloads
 

Package description

What is @aws-sdk/credential-provider-ini?

The @aws-sdk/credential-provider-ini package is a module that allows Node.js developers to load AWS credentials from INI-formatted files, such as the ones created by the AWS CLI. This package is part of the AWS SDK for JavaScript (v3) and is used to retrieve AWS credentials from local configuration files, enabling developers to authenticate AWS SDK calls.

What are @aws-sdk/credential-provider-ini's main functionalities?

Loading credentials from a shared INI file

This feature allows developers to load AWS credentials from a shared INI file, typically located at `~/.aws/credentials`. The `fromIni` function reads the file and returns the credentials for the default profile or a specified profile.

const { fromIni } = require('@aws-sdk/credential-provider-ini');
const credentials = fromIni();

Specifying a custom profile

Developers can specify a custom profile to load credentials for a specific AWS account or role. This is useful when working with multiple AWS accounts or when different permissions are needed.

const { fromIni } = require('@aws-sdk/credential-provider-ini');
const credentials = fromIni({ profile: 'myCustomProfile' });

Assuming a role with MFA

This feature supports assuming an IAM role that requires Multi-Factor Authentication (MFA). The `mfaCodeProvider` is a function that returns the MFA code, which is then used to assume the role.

const { fromIni } = require('@aws-sdk/credential-provider-ini');
const credentials = fromIni({
  profile: 'myRoleProfile',
  mfaCodeProvider: async () => '123456', // Replace with actual MFA code provider
});

Other packages similar to @aws-sdk/credential-provider-ini

Changelog

Source

3.458.0 (2023-11-27)

Features

  • client-accessanalyzer: IAM Access Analyzer now continuously monitors IAM roles and users in your AWS account or organization to generate findings for unused access. Additionally, IAM Access Analyzer now provides custom policy checks to validate that IAM policies adhere to your security standards ahead of deployments. (548e686)
  • client-amp: This release adds support for the Amazon Managed Service for Prometheus collector, a fully managed, agentless Prometheus metrics scraping capability. (09743d7)
  • client-bcm-data-exports: Users can create, read, update, delete Exports of billing and cost management data. Users can get details of Export Executions and details of Tables for exporting. Tagging support is provided for Exports (c190128)
  • client-cloudtrail: CloudTrail Lake now supports federating event data stores. giving users the ability to run queries against their event data using Amazon Athena. (3cccfec)
  • client-cloudwatch-logs: Added APIs to Create, Update, Get, List and Delete LogAnomalyDetectors and List and Update Anomalies in Detector. Added LogGroupClass attribute for LogGroups to classify loggroup as Standard loggroup with all capabilities or InfrequentAccess loggroup with limited capabilities. (a78717e)
  • client-codestar-connections: This release adds support for the CloudFormation Git sync feature. Git sync enables updating a CloudFormation stack from a template stored in a Git repository. (8c49490)
  • client-compute-optimizer: This release enables AWS Compute Optimizer to analyze and generate recommendations with customization and discounts preferences. (400fcdd)
  • client-config-service: Support Periodic Recording for Configuration Recorder (2fc7b07)
  • client-controltower: Add APIs to create and manage a landing zone. (bb577d1)
  • client-cost-optimization-hub: This release launches Cost Optimization Hub, a new AWS Billing and Cost Management feature that helps you consolidate and prioritize cost optimization recommendations across your AWS Organizations member accounts and AWS Regions, so that you can get the most out of your AWS spend. (db1b93c)
  • client-detective: Added new APIs in Detective to support resource investigations (2471acc)
  • client-ecs: Adds a new 'type' property to the Setting structure. Adds a new AccountSetting - guardDutyActivate for ECS. (58559a2)
  • client-efs: Adding support for EFS Archive lifecycle configuration. (4183714)
  • client-eks-auth: This release adds support for EKS Pod Identity feature. EKS Pod Identity makes it easy for customers to obtain IAM permissions for their applications running in the EKS clusters. (35401aa)
  • client-eks: This release adds support for EKS Pod Identity feature. EKS Pod Identity makes it easy for customers to obtain IAM permissions for the applications running in their EKS clusters. (0176799)
  • client-elastic-load-balancing-v2: This release enables both mutual authentication (mTLS), and Automatic Target Weights (ATW) for Application Load Balancers. (229ea23)
  • client-freetier: This is the initial SDK release for the AWS Free Tier GetFreeTierUsage API (842884c)
  • client-fsx: Added support for FSx for ONTAP scale-out file systems and FlexGroup volumes. Added the HAPairs field and ThroughputCapacityPerHAPair for filesystem. Added AggregateConfiguration (containing Aggregates and ConstituentsPerAggregate) and SizeInBytes for volume. (3638e96)
  • client-guardduty: Add support for Runtime Monitoring for ECS and ECS-EC2. (c926466)
  • client-iotfleetwise: AWS IoT FleetWise introduces new APIs for vision system data, such as data collected from cameras, radars, and lidars. You can now model and decode complex data types. (db74d14)
  • client-lakeformation: This release adds four new APIs "DescribeLakeFormationIdentityCenterConfiguration", "CreateLakeFormationIdentityCenterConfiguration", "DescribeLakeFormationIdentityCenterConfiguration", and "DeleteLakeFormationIdentityCenterConfiguration", and also updates the corresponding documentation. (1862f31)
  • client-lex-models-v2: This release introduces new generative AI features in AWS Lex: Assisted Slot Resolution, Descriptive Bot Building, and Sample Utterance Generation. These features leverage large language models available through Amazon Bedrock to improve the bot builder and customer experiences. (4d73e4a)
  • client-lex-runtime-v2: This release introduces support for interpretationSource in the runtime service response. (4b9f04f)
  • client-managedblockchain: Add optional NetworkType property to Accessor APIs (ffc4c3f)
  • client-personalize-events: This release enables PutActions and PutActionInteractions (c3cf9f2)
  • client-personalize-runtime: Enables metadata in recommendations and next best action recommendations (687e16d)
  • client-personalize: Enables metadata in recommendations, recommendations with themes, and next best action recommendations (381121f)
  • client-quicksight: This release launches new APIs for trusted identity propagation setup and supports creating datasources using trusted identity propagation as authentication method for QuickSight accounts configured with IAM Identity Center. (32249c5)
  • client-redshift: This release adds support for multi-data warehouse writes through data sharing. (a35d23c)
  • client-repostspace: Initial release of AWS re:Post Private (648c9e7)
  • client-s3-control: Introduce Amazon S3 Access Grants, a new S3 access control feature that maps identities in directories such as Active Directory, or AWS Identity and Access Management (IAM) Principals, to datasets in S3. (78a4dca)
  • client-s3: Adding new params - Key and Prefix, to S3 API operations for supporting S3 Access Grants. Note - These updates will not change any of the existing S3 API functionality. (ba36517)
  • client-secrets-manager: AWS Secrets Manager has released the BatchGetSecretValue API, which allows customers to fetch up to 20 Secrets with a single request using a list of secret names or filters. (95b2429)
  • client-securityhub: Adds and updates APIs to support customizable security controls. This feature allows Security Hub customers to provide custom parameters for security controls. With this release, findings for controls that support custom parameters will include the parameters used to generate the findings. (dc038ef)
  • client-sfn: Adds new TestState operation which accepts the definition of a single state and executes it. You can test a state without creating a state machine or updating an existing state machine. (71df280)
  • client-transcribe: This release adds support for transcriptions from audio sources in 64 new languages and introduces generative call summarization in Transcribe Call Analytics (Post call) (419b519)
  • client-workspaces-thin-client: Initial release of Amazon WorkSpaces Thin Client (75d24d5)
  • client-workspaces: The release introduces Multi-Region Resilience one-way data replication that allows you to replicate data from your primary WorkSpace to a standby WorkSpace in another AWS Region. DescribeWorkspaces now returns the status of data replication. (f807e5a)
  • clients: update client endpoints as of 2023-11-27 (94e5c18)

Readme

Source

@aws-sdk/credential-provider-ini

NPM version NPM downloads

An internal package

Usage

You probably shouldn't, at least directly. Please use @aws-sdk/credential-providers instead.

Keywords

FAQs

Last updated on 27 Nov 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