if six.text_type(name).startswith('i-') and (len(name) == 10 or len(name) == 19):
        instance_id = name