Skip to content

Instantly share code, notes, and snippets.

@mootrichard
Created April 13, 2018 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mootrichard/1c3b14f875a2eeb75e19ed913c781372 to your computer and use it in GitHub Desktop.
Save mootrichard/1c3b14f875a2eeb75e19ed913c781372 to your computer and use it in GitHub Desktop.
Our Serverless YML
service: serverless-checkout # NOTE: update this with your service name
provider:
name: aws
runtime: nodejs8.10
stage: prod
memorySize: 256
package:
include:
- node_modules/square-connect/**
- node_modules/superagent/**
excludeDevDependencies: true
functions:
checkout:
environment:
ACCESS_TOKEN: YOUR_ACCESS_TOKEN
LOCATION_ID: YOUR_LOCATION_ID
handler: handler.checkout
events:
- http:
path: /checkout
method: any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment