Curl-url-http-3a-2f-2f169.254.169.254-2flatest-2fapi-2ftoken Link ❲2025❳

http://169.254.169.254/latest/api/token

Replace YOUR_TOKEN_HERE with the actual token received from the /latest/api/token endpoint.

First, request a token using PUT:

curl -H "X-aws-ec2-metadata-token: YOUR_TOKEN_HERE" http://169.254.169.254/latest/meta-data/instance-id

If you are a developer or security researcher: curl-url-http-3A-2F-2F169.254.169.254-2Flatest-2Fapi-2Ftoken

6. SSRF defenses