Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ac-aws-customcredentialprovider

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-aws-customcredentialprovider

Selected custom credential providers from AWS

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AC AWS Custom Credential Provider

By default, AWS checks a lot of different providers in a order given by AWS. This could b slow (up to 10 seconds) as every credential provider has a timeout of 1s.

This module only uses 2 credential providers:

  • fromInstanceMetadata
  • fromProcess

On local machines you can disbale fromInstanceMetadata completely, speeding up process even more.

Usage

yarn add ac-aws-customcredentialprovider

const customCredentialProvider = require("ac-aws-customcredentialprovider")


 const awsConfig = {
    region: 'eu-central-1',
    credentials: customCredentialProvider({ localDevelopment: false, debug: false })
}
const client = new SOME-AWS-CLIENT(awsConfig)

Set localDevelopment = true to disable fromInstanceMetadata check,

  • Website
  • Facebook

License

MIT License Copyright © 2023, AdmiralCloud AG, Mark Poepping

FAQs

Package last updated on 24 Jun 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc