Skip to content

Commit ffd9380

Browse files
authored
chore(ec2-metadata-service): readme update to link to imds credentials method (#5962)
1 parent 1408dce commit ffd9380

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ec2-metadata-service/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ const metadata = await metadataService.request("/latest/meta-data/", {}); // req
3434
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).
3535

3636
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.

0 commit comments

Comments
 (0)