Last active
January 7, 2018 23:17
-
-
Save pavelvlasov/3b39587e6d9fd25c346cc7930b725948 to your computer and use it in GitHub Desktop.
Composition for serverless.js config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
hello: { | |
handler: 'index.hello', | |
events: [ | |
{ | |
http: { | |
path: 'hello', | |
method: 'get' | |
} | |
} | |
] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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