Skip to content

Commit

Permalink
chore(ec2-metadata-service): readme update to link to imds credential…
Browse files Browse the repository at this point in the history
…s method
  • Loading branch information
siddsriv committed Apr 4, 2024
1 parent c349825 commit e20ff78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ec2-metadata-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ const metadata = await metadataService.request("/latest/meta-data/", {}); // req
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).

Read more about Instance Metadata here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

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() method](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/Variable/fromInstanceMetadata/).

0 comments on commit e20ff78

Please sign in to comment.