Skip to content

Instantly share code, notes, and snippets.

View pavelvlasov's full-sized avatar

Pavel Vlasov pavelvlasov

View GitHub Profile
@pavelvlasov
pavelvlasov / functions.js
Last active January 7, 2018 23:17
Composition for serverless.js config
module.exports = {
hello: {
handler: 'index.hello',
events: [
{
http: {
path: 'hello',
method: 'get'
}
}
@pavelvlasov
pavelvlasov / base-serverless.js
Last active January 7, 2018 23:18
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,