def get_lambda_cloud_watch_func_name(stackname, asg_name, instanceId):
    """
    Generate the name of the cloud watch metrics as a function 
    of the ASG name and the instance id.
    :param stackname: 
    :param asg_name: 
    :param instanceId: 
    :return: str
    """
    name = asg_name + '-cwm-' + str(instanceId)
    return name[-63:len(name)]