From 3249027c6aca82ce126c39202f4f674fb599f705 Mon Sep 17 00:00:00 2001 From: Vinod S R Date: Thu, 27 Jul 2017 22:54:35 +0530 Subject: [PATCH] Use naming.getStackName method instead of hardcoding. --- lib/plugins/aws/remove/lib/stack.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/remove/lib/stack.js b/lib/plugins/aws/remove/lib/stack.js index 71ef16590..6e02577c5 100644 --- a/lib/plugins/aws/remove/lib/stack.js +++ b/lib/plugins/aws/remove/lib/stack.js @@ -1,11 +1,12 @@ 'use strict'; const BbPromise = require('bluebird'); +const naming = require('../../lib/naming') module.exports = { remove() { this.serverless.cli.log('Removing Stack...'); - const stackName = `${this.serverless.service.service}-${this.options.stage}`; + const stackName = naming.getStackName(); const params = { StackName: stackName, };