diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js index afda6561b..bbba47463 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js @@ -5,7 +5,7 @@ const _ = require('lodash'); const BbPromise = require('bluebird'); -const isRestApiId = RegExp.prototype.test.bind(/^[a-z0-9]{10}$/); +const isRestApiId = RegExp.prototype.test.bind(/^[a-z0-9]{3,}$/); // NOTE --> Keep this file in sync with ../stage.js