mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Delete bucket was still using them Hopefully all :) Further test fixes. .... worked too long yesterday Fixed Variable tests Remove not used parameters from request() and add options with warning
32 lines
635 B
JavaScript
32 lines
635 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
|
|
module.exports = {
|
|
remove() {
|
|
this.serverless.cli.log('Removing Stack...');
|
|
const stackName = this.provider.naming.getStackName();
|
|
const params = {
|
|
StackName: stackName,
|
|
};
|
|
|
|
if (this.serverless.service.provider.cfnRole) {
|
|
params.RoleARN = this.serverless.service.provider.cfnRole;
|
|
}
|
|
|
|
const cfData = {
|
|
StackId: stackName,
|
|
};
|
|
|
|
return this.provider.request('CloudFormation',
|
|
'deleteStack',
|
|
params)
|
|
.then(() => cfData);
|
|
},
|
|
|
|
removeStack() {
|
|
return BbPromise.bind(this)
|
|
.then(this.remove);
|
|
},
|
|
};
|