Created
          November 12, 2024 18:46 
        
      - 
      
 - 
        
Save pjaudiomv/0fab53a417579669277e40bc1cd23f51 to your computer and use it in GitHub Desktop.  
    aws token v2
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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