Composition for serverless.js config
module.exports = { | |
hello: { | |
handler: 'index.hello', | |
events: [ | |
{ | |
http: { | |
path: 'hello', | |
method: 'get' | |
} | |
} | |
] | |
} | |
}; |
'use strict'; | |
module.exports = { | |
service: 'sls-js-composition-config', | |
provider: { | |
name: 'aws', | |
runtime: 'nodejs6.10', | |
stage: '${opt:stage, "dev"}', | |
region: '${opt:region, "us-east-1"}', | |
memorySize: 128, | |
timeout: 10, | |
deploymentBucket: { | |
name: 'sls-js-config' | |
} | |
}, | |
functions: require('./functions') | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment