code: func PublishRefOutputDecorator(keyName string, description string) sparta.TemplateDecoratorHookFunc {
  	attrDecorator := func(serviceName string,
  		lambdaResourceName string,
  		lambdaResource gocf.LambdaFunction,
  		resourceMetadata map[string]interface{},
  		S3Bucket string,
  		S3Key string,
  		buildID string,
  		template *gocf.Template,
  		context map[string]interface{},
  		logger *logrus.Logger) error {
  
  		// Add the function ARN as a stack output
  		template.Outputs[sanitizedKeyName(keyName)] = &gocf.Output{
  			Description: description,
  			Value:       gocf.Ref(lambdaResourceName),
  		}
  		return nil
  	}
  
  	return sparta.TemplateDecoratorHookFunc(attrDecorator)
  }
docs: // PublishRefOutputDecorator returns an TemplateDecoratorHookFunc
  // that publishes the Ref value for a given lambda