Skip to content

Instantly share code, notes, and snippets.

@pavelvlasov pavelvlasov/functions.js
Last active Jan 7, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.