http://169.254.169.254/latest/api/token
Replace YOUR_TOKEN_HERE with the actual token received from the /latest/api/token endpoint.
169.254.169.254First, 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
localhost and 169.254.0.0/16 blocklists in URL validation libraries.