Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 5, 2024 via pnpm

@aws-sdk/credential-provider-node 3.414.0

AWS credential provider that sources credentials from a Node.JS environment.
Package summary
Share
0
issues
3
licenses
60
Apache-2.0
2
MIT
2
0BSD
Package created
19 Nov 2018
Version published
15 Sep 2023
Maintainers
5
Total deps
64
Direct deps
11
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
60 Packages, Including:
@aws-crypto/ie11-detection@3.0.0
@aws-crypto/sha256-browser@3.0.0
@aws-crypto/sha256-js@3.0.0
@aws-crypto/supports-web-crypto@3.0.0
@aws-crypto/util@3.0.0
@aws-sdk/client-sso@3.414.0
@aws-sdk/credential-provider-env@3.413.0
@aws-sdk/credential-provider-ini@3.414.0
@aws-sdk/credential-provider-node@3.414.0
@aws-sdk/credential-provider-process@3.413.0
@aws-sdk/credential-provider-sso@3.414.0
@aws-sdk/credential-provider-web-identity@3.413.0
@aws-sdk/middleware-host-header@3.413.0
@aws-sdk/middleware-logger@3.413.0
@aws-sdk/middleware-recursion-detection@3.413.0
@aws-sdk/middleware-user-agent@3.413.0
@aws-sdk/region-config-resolver@3.413.0
@aws-sdk/token-providers@3.413.0
@aws-sdk/types@3.413.0
@aws-sdk/util-endpoints@3.413.0
@aws-sdk/util-locate-window@3.568.0
@aws-sdk/util-user-agent-browser@3.413.0
@aws-sdk/util-user-agent-node@3.413.0
@aws-sdk/util-utf8-browser@3.259.0
@smithy/abort-controller@2.2.0
@smithy/config-resolver@2.2.0
@smithy/credential-provider-imds@2.3.0
@smithy/fetch-http-handler@2.5.0
@smithy/hash-node@2.2.0
@smithy/invalid-dependency@2.2.0
@smithy/is-array-buffer@2.2.0
@smithy/middleware-content-length@2.2.0
@smithy/middleware-endpoint@2.5.1
@smithy/middleware-retry@2.3.1
@smithy/middleware-serde@2.3.0
@smithy/middleware-stack@2.2.0
@smithy/node-config-provider@2.3.0
@smithy/node-http-handler@2.5.0
@smithy/property-provider@2.2.0
@smithy/protocol-http@3.3.0
@smithy/querystring-builder@2.2.0
@smithy/querystring-parser@2.2.0
@smithy/service-error-classification@2.1.5
@smithy/shared-ini-file-loader@2.4.0
@smithy/smithy-client@2.5.1
@smithy/types@2.12.0
@smithy/url-parser@2.2.0
@smithy/util-base64@2.3.0
@smithy/util-body-length-browser@2.2.0
@smithy/util-body-length-node@2.3.0

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
bowser@2.11.0
uuid@9.0.1

BSD Zero Clause License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
include-copyright
include-license
include-original
Cannot
hold-liable
Must
2 Packages, Including:
tslib@1.14.1
tslib@2.6.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

11
All Dependencies CSV
β“˜ This is a list of @aws-sdk/credential-provider-node 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@aws-sdk/credential-provider-env3.413.05.73 kBApache-2.0
prod
@aws-sdk/credential-provider-ini3.414.09.59 kBApache-2.0
prod
@aws-sdk/credential-provider-process3.413.06.7 kBApache-2.0
prod
@aws-sdk/credential-provider-sso3.414.08.23 kBApache-2.0
prod
@aws-sdk/credential-provider-web-identity3.413.08.57 kBApache-2.0
prod
@aws-sdk/types3.413.013.14 kBApache-2.0
prod
@smithy/credential-provider-imds2.3.060.66 kBApache-2.0
prod
@smithy/property-provider2.2.031.37 kBApache-2.0
prod
@smithy/shared-ini-file-loader2.4.045.87 kBApache-2.0
prod
@smithy/types2.12.0227.75 kBApache-2.0
prod
tslib2.6.215.59 kB0BSD
prod

Visualizations

Frequently Asked Questions

What does @aws-sdk/credential-provider-node do?

The @aws-sdk/credential-provider-node is an AWS credential provider that garners credentials from a Node.js environment. It offers a factory function, fromEnv, that strives to source AWS credentials relying on numerous sources such as environment variables available through process.env, SSO credentials, web identity token credentials, shared credentials, and config ini files, and leveraging the EC2/ECS Instance Metadata Service. The credential provider will initialize one provider at a time and only proceed to the next if no credentials are found.

How do you use @aws-sdk/credential-provider-node?

Utilizing the @aws-sdk/credential-provider-node involves including it in your JavaScript code. Below you can see how you can employ the defaultProvider:

const { getDefaultRoleAssumerWithWebIdentity } = require("@aws-sdk/client-sts");
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3");

const provider = defaultProvider({
  roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity({
    // You must explicitly pass a region if you are not using us-east-1
    region: "eu-west-1"
  }),
});

const client = new S3Client({ credentialDefaultProvider: provider });

Plus, the provided wrapper of this provider in @aws-sdk/credential-providers package can be used to avoid importing getDefaultRoleAssumerWithWebIdentity() or getDefaultRoleAssume() from the STS package. Here's how you can utilize fromNodeProviderChain:

const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");

const credentials = fromNodeProviderChain();

const client = new S3Client({ credentials });

Where are the @aws-sdk/credential-provider-node docs?

The information about @aws-sdk/credential-provider-node can be found in the readme content on the GitHub page at https://github.com/aws/aws-sdk-js-v3 as part of the AWS SDK for JavaScript version 3 package, where it provides elaborate details on how to use it and find related packages.