Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Serverless.js inheritance example
'use strict';
module.exports = {
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'
}
}
};
'use strict';
const merge = require('lodash/merge');
const baseConfig = require('./base-serverless');
module.exports = merge({}, baseConfig, {
service: 'sls-js-base-config',
functions: {
hello: {
handler: 'index.hello',
events: [
{
http: {
path: 'hello',
method: 'get'
}
}
]
}
}
});
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.