Last active
December 2, 2022 09:07
-
-
Save s2504s/c9488fa190aff0c48fccbee4c0a71325 to your computer and use it in GitHub Desktop.
Get user-data from metadata
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
| TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \ | |
| && curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/user-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment