Skip to content

Instantly share code, notes, and snippets.

@pjaudiomv
Created November 12, 2024 18:46
Show Gist options
  • Save pjaudiomv/0fab53a417579669277e40bc1cd23f51 to your computer and use it in GitHub Desktop.
Save pjaudiomv/0fab53a417579669277e40bc1cd23f51 to your computer and use it in GitHub Desktop.
aws token v2
export TOKEN=$(curl -sL -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" http://169.254.169.254/latest/api/token)
curl -sL -X GET -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment