def id_to_ec2_id(instance_id, template='i-%08x'):
 return (template % int(instance_id))

def id_to_ec2_id ( instance_id , template = 'i-%08x' ) : return ( template % int ( instance_id ) )
convert an instance id to an ec2 id .