Skip to content

Instantly share code, notes, and snippets.

@rts-rob
Created April 22, 2020 13:04
Show Gist options
  • Save rts-rob/6dbef56b4a39a4500c6fac349e32578b to your computer and use it in GitHub Desktop.
Save rts-rob/6dbef56b4a39a4500c6fac349e32578b to your computer and use it in GitHub Desktop.
Export multiple functions
const ready = true;
exports.readyHandler = () => { return ready; };
exports.notReadyHandler = () => {return !ready; };
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
multiple
Resources:
ReadyFunction:
Type: AWS::Serverless::Function
Properties:
Handler: app.readyHandler
...
NotReadyFunction:
Type: AWS::Serverless::Function
Properties:
Handler: app.notReadyHandler
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment