diff --git a/lib/actions/DashDeploy.js b/lib/actions/DashDeploy.js index 21f4cdacb..6e63d11e0 100644 --- a/lib/actions/DashDeploy.js +++ b/lib/actions/DashDeploy.js @@ -14,6 +14,7 @@ * - aliasFunction: (String) Custom Lambda alias. * - functions: (Array) Array of function JSONs from fun.sl.json * - deployed: (Object) Contains regions and the code functions that have been uploaded to the S3 bucket in that region + * - description: (String) Provide custom description string for API Gateway stage deployment description. */ module.exports = function(SPlugin, serverlessPath) { @@ -78,6 +79,10 @@ module.exports = function(SPlugin, serverlessPath) { option: 'aliasRestApi', // TODO: Implement shortcut: 'a', description: 'Optional - Provide a custom Api Gateway Stage Variable for your REST API' + }, { + option: 'description', + shortcut: 'd', + description: 'Optional - Provide custom description string for API Gateway stage deployment description' } ] }); @@ -266,9 +271,10 @@ module.exports = function(SPlugin, serverlessPath) { return _this.S.actions.endpointDeploy({ options: { - stage: _this.evt.options.stage, - region: _this.evt.options.region, - paths: _this.evt.options.endpointPaths + stage: _this.evt.options.stage, + region: _this.evt.options.region, + paths: _this.evt.options.endpointPaths, + description: _this.evt.options.description } }) .then(function(evt) { diff --git a/lib/actions/EndpointDeploy.js b/lib/actions/EndpointDeploy.js index d1943a438..c8a59323c 100644 --- a/lib/actions/EndpointDeploy.js +++ b/lib/actions/EndpointDeploy.js @@ -14,6 +14,7 @@ * - paths: (Array) Array of endpoint paths to deploy. Format: ['users/show@users/show~GET'] * - aliasEndpoint: (String) The Lambda Alias the endpoint should point to. * - all: (Boolean) Indicates whether all Functions in the project should be deployed. + * - description: (String) Provide custom description string for API Gateway stage deployment description. */ module.exports = function(SPlugin, serverlessPath) {