code: def fetch_current_cloudformation_template(service_name, environment, cf_client):
      
      stack_name = get_stack_name(environment, service_name)
      logger.debug('Fetching template for `%s`', stack_name)
      result = cf_client.get_template(StackName=stack_name)
      return jsonify(result['TemplateBody'])
docs: Fetch the currently-deployed template for the given service in the given
      environment and return it.