@aws-sdk/ec2-metadata-service 3.549.0 → 3.552.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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ The basic usage of EC2 IMDS utils in the AWS SDK for JavaScript v3 is as follows
|
|
|
11
11
|
|
|
12
12
|
JavaScript example
|
|
13
13
|
|
|
14
|
-
```
|
|
14
|
+
```JavaScript
|
|
15
15
|
const { MetadataService } = require("@aws-sdk/ec2-metadata-service");
|
|
16
16
|
|
|
17
17
|
const metadataService = new MetadataService({});
|
|
@@ -21,7 +21,7 @@ const metadata = await metadataService.request("/latest/meta-data/", {}); // req
|
|
|
21
21
|
|
|
22
22
|
ES6 example
|
|
23
23
|
|
|
24
|
-
```
|
|
24
|
+
```JavaScript
|
|
25
25
|
import { MetadataService } from "@aws-sdk/ec2-metadata-service";
|
|
26
26
|
|
|
27
27
|
const metadataService = new MetadataService({});
|
|
@@ -34,3 +34,5 @@ const metadata = await metadataService.request("/latest/meta-data/", {}); // req
|
|
|
34
34
|
Note that by default, requests to IMDS are in accordance with [IMDSv2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html).
|
|
35
35
|
|
|
36
36
|
Read more about Instance Metadata here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
|
37
|
+
|
|
38
|
+
The @aws-sdk/ec2-metadata-service package is a standalone utility and not part of the default credential provider chain. If you want to use IMDS for credentials, you can use the [fromInstanceMetadata()](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/Variable/fromInstanceMetadata/) method.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/ec2-metadata-service",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.552.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline ec2-metadata-service",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@aws-sdk/credential-providers": "3.
|
|
33
|
+
"@aws-sdk/credential-providers": "3.552.0",
|
|
34
34
|
"@tsconfig/recommended": "1.0.1",
|
|
35
35
|
"@types/node": "^14.14.31",
|
|
36
36
|
"concurrently": "7.0.0",
|