@aws-sdk/credential-provider-node 3.85.0 → 3.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +12 -0
- package/dist-types/defaultProvider.d.ts +9 -8
- package/dist-types/ts3.4/defaultProvider.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/credential-provider-node
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/credential-provider-node
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **credential-providers:** expose node.js default credential provider chain ([#3588](https://github.com/aws/aws-sdk-js-v3/issues/3588)) ([51aaffc](https://github.com/aws/aws-sdk-js-v3/commit/51aaffc37838e403b5934132bfe2c277a28c3ea5))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/credential-provider-node
|
package/README.md
CHANGED
|
@@ -45,6 +45,18 @@ const provider = defaultProvider({
|
|
|
45
45
|
const client = new S3Client({ credentialDefaultProvider: provider });
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
_IMPORTANT_: We provide a wrapper of this provider in `@aws-sdk/credential-providers`
|
|
49
|
+
package to save you from importing `getDefaultRoleAssumerWithWebIdentity()` or
|
|
50
|
+
`getDefaultRoleAssume()` from STS package. Similarly, you can do:
|
|
51
|
+
|
|
52
|
+
```js
|
|
53
|
+
const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");
|
|
54
|
+
|
|
55
|
+
const credentials = fromNodeProviderChain();
|
|
56
|
+
|
|
57
|
+
const client = new S3Client({ credentials });
|
|
58
|
+
```
|
|
59
|
+
|
|
48
60
|
## Supported configuration
|
|
49
61
|
|
|
50
62
|
You may customize how credentials are resolved by providing an options hash to
|
|
@@ -4,6 +4,7 @@ import { FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
|
4
4
|
import { FromSSOInit } from "@aws-sdk/credential-provider-sso";
|
|
5
5
|
import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
6
6
|
import { Credentials, MemoizedProvider } from "@aws-sdk/types";
|
|
7
|
+
export declare type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit;
|
|
7
8
|
/**
|
|
8
9
|
* Creates a credential provider that will attempt to find credentials from the
|
|
9
10
|
* following sources (listed in order of precedence):
|
|
@@ -23,19 +24,19 @@ import { Credentials, MemoizedProvider } from "@aws-sdk/types";
|
|
|
23
24
|
* @param init Configuration that is passed to each individual
|
|
24
25
|
* provider
|
|
25
26
|
*
|
|
26
|
-
* @see fromEnv The function used to source credentials from
|
|
27
|
+
* @see {@link fromEnv} The function used to source credentials from
|
|
27
28
|
* environment variables
|
|
28
|
-
* @see fromSSO The function used to source credentials from
|
|
29
|
+
* @see {@link fromSSO} The function used to source credentials from
|
|
29
30
|
* resolved SSO token cache
|
|
30
|
-
* @see fromTokenFile The function used to source credentials from
|
|
31
|
+
* @see {@link fromTokenFile} The function used to source credentials from
|
|
31
32
|
* token file
|
|
32
|
-
* @see fromIni
|
|
33
|
+
* @see {@link fromIni} The function used to source credentials from INI
|
|
33
34
|
* files
|
|
34
|
-
* @see fromProcess The function used to sources credentials from
|
|
35
|
+
* @see {@link fromProcess} The function used to sources credentials from
|
|
35
36
|
* credential_process in INI files
|
|
36
|
-
* @see fromInstanceMetadata The function used to source credentials from the
|
|
37
|
+
* @see {@link fromInstanceMetadata} The function used to source credentials from the
|
|
37
38
|
* EC2 Instance Metadata Service
|
|
38
|
-
* @see fromContainerMetadata The function used to source credentials from the
|
|
39
|
+
* @see {@link fromContainerMetadata} The function used to source credentials from the
|
|
39
40
|
* ECS Container Metadata Service
|
|
40
41
|
*/
|
|
41
|
-
export declare const defaultProvider: (init?:
|
|
42
|
+
export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider<Credentials>;
|
|
@@ -4,5 +4,6 @@ import { FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
|
4
4
|
import { FromSSOInit } from "@aws-sdk/credential-provider-sso";
|
|
5
5
|
import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
6
6
|
import { Credentials, MemoizedProvider } from "@aws-sdk/types";
|
|
7
|
+
export declare type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit;
|
|
7
8
|
|
|
8
|
-
export declare const defaultProvider: (init?:
|
|
9
|
+
export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider<Credentials>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.95.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12.0.0"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@aws-sdk/credential-provider-env": "3.78.0",
|
|
30
30
|
"@aws-sdk/credential-provider-imds": "3.81.0",
|
|
31
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
31
|
+
"@aws-sdk/credential-provider-ini": "3.95.0",
|
|
32
32
|
"@aws-sdk/credential-provider-process": "3.80.0",
|
|
33
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
33
|
+
"@aws-sdk/credential-provider-sso": "3.95.0",
|
|
34
34
|
"@aws-sdk/credential-provider-web-identity": "3.78.0",
|
|
35
35
|
"@aws-sdk/property-provider": "3.78.0",
|
|
36
36
|
"@aws-sdk/shared-ini-file-loader": "3.80.0",
|