Ryan S. Brown d4a1aafd80 Add versionFunctions as an AWS provider option that will reduce the default number of stack outputs.
Per #2853, having versions as resources/outputs can trigger some limits
related to CloudFormation stack outputs. This leaves the existing
default, but if turned to `false` will reduce the number of outputs by
N, where N is the number of functions total.
2017-01-05 11:23:52 -05:00

77 lines
1.9 KiB
JavaScript

'use strict';
class Deploy {
constructor(serverless) {
this.serverless = serverless;
this.commands = {
deploy: {
usage: 'Deploy a Serverless service',
lifecycleEvents: [
'cleanup',
'initialize',
'setupProviderConfiguration',
'createDeploymentArtifacts',
'compileFunctions',
'compileEvents',
'deploy',
],
options: {
stage: {
usage: 'Stage of the service',
shortcut: 's',
},
region: {
usage: 'Region of the service',
shortcut: 'r',
},
versionFunctions: {
usage: 'Cut an addressable version for every deploy. These are never pruned',
},
noDeploy: {
usage: 'Build artifacts without deploying',
shortcut: 'n',
},
verbose: {
usage: 'Show all stack events during deployment',
shortcut: 'v',
},
},
commands: {
function: {
usage: 'Deploy a single function from the service',
lifecycleEvents: [
'initialize',
'packageFunction',
'deploy',
],
options: {
function: {
usage: 'Name of the function',
shortcut: 'f',
required: true,
},
stage: {
usage: 'Stage of the function',
shortcut: 's',
},
region: {
usage: 'Region of the function',
shortcut: 'r',
},
},
},
list: {
usage: 'List deployed version of your Serverless Service',
lifecycleEvents: [
'log',
],
},
},
},
};
}
}
module.exports = Deploy;