Retrieve dynamic data
To retrieve dynamic data from within a running instance, use the following URI.
http://169.254.169.254/latest/dynamic/
Note
The examples in this section use the IPv4 address of the IMDS:
169.254.169.254
. If you are retrieving instance metadata for EC2
instances over the IPv6 address, ensure that you enable and use the IPv6 address
instead: [fd00:ec2::254]
. The IPv6 address of the IMDS is
compatible with IMDSv2 commands. The IPv6 address is only accessible on
instances built on the
AWS Nitro System and in an IPv6-supported subnet (dual stack or IPv6 only).
This example shows how to retrieve the high-level instance identity categories.
For more information about dynamic data and examples of how to retrieve it, see Instance identity documents.