Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-http

Package Overview
Dependencies
25
Maintainers
5
Versions
35
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
8.5M
decreased by-15.86%
Maintainers
5
Install size
1.11 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.496.0 (2024-01-19)

Bug Fixes

  • get full list of exports for esm compat in dist-cjs (#5694) (5d26da6)
  • revert "feat(credential-provider-node): use dynamic import for credential providers (#5677)" (4cea583)

Features

  • client-athena: Introducing new NotebookS3LocationUri parameter to Athena ImportNotebook API. Payload is no longer required and either Payload or NotebookS3LocationUri needs to be provided (not both) for a successful ImportNotebook API call. If both are provided, an InvalidRequestException will be thrown. (a8ed592)
  • client-codebuild: Release CodeBuild Reserved Capacity feature (c0c445d)
  • client-dynamodb: This release adds support for including ApproximateCreationDateTimePrecision configurations in EnableKinesisStreamingDestination API, adds the same as an optional field in the response of DescribeKinesisStreamingDestination, and adds support for a new UpdateKinesisStreamingDestination API. (2be6625)
  • client-qconnect: Increased Quick Response name max length to 100 (b02d4af)
  • clients: update client endpoints as of 2024-01-19 (cb1bc4e)
  • credential-provider-node: use dynamic import for credential providers (#5677) (7841411)

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 19 Jan 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