Created
April 13, 2018 00:03
-
-
Save mootrichard/1c3b14f875a2eeb75e19ed913c781372 to your computer and use it in GitHub Desktop.
Our Serverless YML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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