Socket
Socket
Sign inDemoInstall

@smithy/credential-provider-imds

Package Overview
Dependencies
7
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @smithy/credential-provider-imds

AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service


Version published
Weekly downloads
10M
decreased by-0.73%
Maintainers
2
Install size
503 kB
Created
Weekly downloads
 

Package description

What is @smithy/credential-provider-imds?

The @smithy/credential-provider-imds package is designed to retrieve AWS credentials from the EC2 Instance Metadata Service (IMDS). It allows applications running on EC2 instances to securely obtain temporary credentials without needing to hard-code them. This is particularly useful for managing access to AWS services in a secure and scalable way.

What are @smithy/credential-provider-imds's main functionalities?

Fetching credentials from IMDS

This feature allows the retrieval of AWS credentials from the EC2 Instance Metadata Service. The provided code sample demonstrates how to asynchronously fetch these credentials using the fromInstanceMetadata function.

const { fromInstanceMetadata } = require('@smithy/credential-provider-imds');

async function getCredentials() {
  const credentials = await fromInstanceMetadata();
  return credentials;
}

Other packages similar to @smithy/credential-provider-imds

Readme

Source

@smithy/credential-provider-imds

NPM version NPM downloads

An internal package

Usage

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

Keywords

FAQs

Last updated on 14 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc