Skip to content

Commit

Permalink
fix(AWS ALB): Ensure to treat provider.alb.authorizers as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Sep 28, 2020
1 parent 7f47448 commit e990c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/aws/package/compile/events/alb/lib/validate.js
Expand Up @@ -12,7 +12,7 @@ module.exports = {
validate() {
const authorizers = {};
const albAuthConfig = this.serverless.service.provider.alb;
if (albAuthConfig) {
if (albAuthConfig && albAuthConfig.authorizers) {
for (const [name, auth] of Object.entries(albAuthConfig.authorizers)) {
switch (auth.type) {
case 'cognito':
Expand Down

0 comments on commit e990c09

Please sign in to comment.