Curl-url-http-3a-2f-2f169.254.169.254-2flatest-2fapi-2ftoken -

curl -X PUT "http://169.254.169.254/latest/api/token" -H "Content-Type: application/json" The response will include a token that can then be used to access other metadata. For example, once you have the token, you can use it like this: