@aws-sdk/credential-provider-node 3.391.0 → 3.395.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/README.md +6 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,7 +39,10 @@ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
|
39
39
|
const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3");
|
|
40
40
|
|
|
41
41
|
const provider = defaultProvider({
|
|
42
|
-
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(
|
|
42
|
+
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity({
|
|
43
|
+
// You must explicitly pass a region if you are not using us-east-1
|
|
44
|
+
region: "eu-west-1"
|
|
45
|
+
}),
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
const client = new S3Client({ credentialDefaultProvider: provider });
|
|
@@ -77,8 +80,8 @@ supported:
|
|
|
77
80
|
code and `mfaCodeProvider` is not a valid function, the credential provider
|
|
78
81
|
promise will be rejected.
|
|
79
82
|
- `roleAssumer` - A function that assumes a role and returns a promise
|
|
80
|
-
fulfilled with credentials for the assumed role. If not specified,
|
|
81
|
-
will
|
|
83
|
+
fulfilled with credentials for the assumed role. If not specified, no role
|
|
84
|
+
will be assumed, and an error will be thrown.
|
|
82
85
|
- `roleArn` - ARN to assume. If not specified, the provider will use the value
|
|
83
86
|
in the `AWS_ROLE_ARN` environment variable.
|
|
84
87
|
- `webIdentityTokenFile` - File location of where the `OIDC` token is stored.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.395.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.0.0"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-sdk/credential-provider-env": "3.391.0",
|
|
31
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
31
|
+
"@aws-sdk/credential-provider-ini": "3.395.0",
|
|
32
32
|
"@aws-sdk/credential-provider-process": "3.391.0",
|
|
33
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
33
|
+
"@aws-sdk/credential-provider-sso": "3.395.0",
|
|
34
34
|
"@aws-sdk/credential-provider-web-identity": "3.391.0",
|
|
35
35
|
"@aws-sdk/types": "3.391.0",
|
|
36
36
|
"@smithy/credential-provider-imds": "^2.0.0",
|