Skip to content

2.2.2

Latest
Compare
Choose a tag to compare
@adrian-iriusrisk adrian-iriusrisk released this 16 Jun 05:48
0b99069

Check http code response from http://169.254.169.254/ to know if we are on an instance with IMSDv1 or IMSDv2. If it responds with 200, we are in an IMSDv1 and we can get the ec2 metadata without a token, otherwise, we need to get the token first and then get ec2 metadata info