def IsEC2Instance(instance):
 return (re.match(kEC2InstanceRe, instance) is not None)

def IsEC2Instance ( instance ) : return ( re . match ( kEC2InstanceRe , instance ) is not None )
return true if the instance name passed in matches the aws instance naming pattern .