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