Skip to content

Commit 21b014e

Browse files
authored
Merge pull request #6285 from joetravis/apiKeys-stackName
Use naming to get stackName
2 parents 6d05d83 + f76f549 commit 21b014e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/plugins/aws/package/compile/events/apiGateway/lib/hack/disassociateUsagePlan.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99

1010
if (apiKeys && apiKeys.length) {
1111
this.serverless.cli.log('Removing usage plan association...');
12-
const stackName = `${this.serverless.service.service}-${this.provider.getStage()}`;
12+
const stackName = `${this.provider.naming.getStackName()}`;
1313
return BbPromise.all([
1414
this.provider.request('CloudFormation',
1515
'describeStackResource',

lib/plugins/aws/package/compile/events/apiGateway/lib/hack/disassociateUsagePlan.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('#disassociateUsagePlan()', () => {
6969
'CloudFormation',
7070
'describeStackResource',
7171
{
72-
StackName: `${serverless.service.service}-${awsProvider.getStage()}`,
72+
StackName: `${awsProvider.naming.getStackName()}`,
7373
LogicalResourceId: 'ApiGatewayRestApi',
7474
}
7575
)).to.be.equal(true);

0 commit comments

Comments
 (0)