Skip to content

Instantly share code, notes, and snippets.

@jthomerson
Created September 8, 2016 15:40
Show Gist options
  • Save jthomerson/7cc0bba3a50c73acf918e8c0082422b6 to your computer and use it in GitHub Desktop.
Save jthomerson/7cc0bba3a50c73acf918e8c0082422b6 to your computer and use it in GitHub Desktop.
weird error with serverless.yml variables
service: testapi
vars:
defaultRegion: us-east-1
region: ${opt:region, self:vars.defaultRegion}
stage: ${opt:stage, env:USER}
provider:
name: aws
runtime: nodejs4.3
region: ${self:vars.region}
stage: ${self:vars.stage}
functions:
ping:
handler: src/ping/Ping.handler
memorySize: 128
timeout: 2
events:
- http:
method: GET
path: ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment