Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-http

Package Overview
Dependencies
25
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/credential-provider-http

AWS credential provider for containers and HTTP sources


Version published
Weekly downloads
7.6M
increased by1.68%
Maintainers
5
Install size
1.13 MB
Created
Weekly downloads
 

Package description

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

The @aws-sdk/credential-provider-http package is designed to retrieve AWS credentials from a remote endpoint, such as the Amazon EC2 Instance Metadata Service (IMDS) or a custom HTTP endpoint. It is part of the AWS SDK for JavaScript (v3), which is a modular collection of software for interacting with AWS services. This package is particularly useful for applications running on AWS infrastructure that need to securely obtain temporary credentials without hardcoding them.

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

Retrieving credentials from EC2 Instance Metadata Service (IMDS)

This feature allows applications running on an Amazon EC2 instance to automatically retrieve temporary AWS credentials. The credentials are provided by the EC2 Instance Metadata Service without requiring manual credential management.

const { fromInstanceMetadata } = require('@aws-sdk/credential-provider-http');

const credentials = fromInstanceMetadata();

Retrieving credentials from a custom HTTP endpoint

This feature enables the retrieval of AWS credentials from a custom HTTP endpoint. It is useful for scenarios where credentials are centrally managed and distributed via an internal HTTP service.

const { fromHttp } = require('@aws-sdk/credential-provider-http');

const credentials = fromHttp({
  url: 'http://my-custom-credential-provider/',
  requestOptions: { // Optional HTTP request options
    method: 'GET'
  }
});

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

Changelog

Source

3.552.0 (2024-04-09)

Features

  • client-codebuild: Add new webhook filter types for GitHub webhooks (e78df26)
  • client-mediaconvert: This release includes support for bringing your own fonts to use for burn-in or DVB-Sub captioning workflows. (b1fb0ed)
  • client-pinpoint: The OrchestrationSendingRoleArn has been added to the email channel and is used to send emails from campaigns or journeys. (18bbe71)
  • client-rds: This release adds support for specifying the CA certificate to use for the new db instance when restoring from db snapshot, restoring from s3, restoring to point in time, and creating a db instance read replica. (59e2f13)
  • clients: update client endpoints as of 2024-04-09 (30faa2c)

Readme

Source

@aws-sdk/credential-provider-http

NPM version NPM downloads

An internal transitively required package.

Usage

See https://www.npmjs.com/package/@aws-sdk/credential-providers

Keywords

FAQs

Last updated on 09 Apr 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