Skip to content

Commit

Permalink
fix(AWS APIGW): Fix Rest API id detection when no API GW involved
Browse files Browse the repository at this point in the history
Regression introduced with #7126
  • Loading branch information
medikoo committed Dec 23, 2019
1 parent d315bb4 commit 81096ca
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ module.exports = {
if (this.isExternalRestApi) return null;
if (!this.apiGatewayRestApiId) {
// Could not resolve REST API id automatically
if (!this.serverless.utils.isEventUsed(this.state.service.functions, 'http')) {
return null;
}

if (!this.hasTracingConfigured && !this.hasLogsConfigured) {
// Do crash if there are no API Gateway customizations to apply
Expand Down

0 comments on commit 81096ca

Please sign in to comment.