'Only build the template file.'

def template(self, lambda_arn, role_arn, output=None, json=False):

    if (not lambda_arn):
        raise ClickException(u'Lambda    ARN    is    required    to    template.')
    if (not role_arn):
        raise ClickException(u'Role    ARN    is    required    to    template.')
    self.zappa.credentials_arn = role_arn
    template = self.zappa.create_stack_template(lambda_arn=lambda_arn, lambda_name=self.lambda_name, api_key_required=self.api_key_required, iam_authorization=self.iam_authorization, authorizer=self.authorizer, cors_options=self.cors, description=self.apigateway_description)
    if (not output):
        template_file = (((self.lambda_name + u'-template-') + str(int(time.time()))) + u'.json')
    else:
        template_file = output
    with open(template_file, u'wb') as out:
        out.write(bytes(template.to_json(indent=None, separators=(u',', u':')), u'utf-8'))
    if (not json):
        click.echo(((click.style(u'Template    created', fg=u'green', bold=True) + u':    ') + click.style(template_file, bold=True)))
    else:
        with open(template_file, u'r') as out:
            print out.read()
