code: def http_get_instance_env():
    
    try:
      info = json.loads(http_get_metadata('iam/info'))
    except Exception as error:
      raise IOError("Error looking up metadata:iam/info: " + repr(error))
    return info["InstanceProfileArn"].split(":")[5].split("/")[1].split("-",1)[0]
docs: Returns: just the env this ec2 instance is in. Doesn't require API access like get_instance_aws_context does
    Example return value: "staging"