def environment_filename(plan_name):
    """Generates the filename of a deployment plan's environment file
    when it is written out as a file for Heat.

    :type plan_name: str
    :rtype: str
    """
    return '%s-%s' % (plan_name, 'environment.yaml')
