From bbcba5f229a858c66e099bf7d849a312a6bae6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Franz=C3=A9n?= Date: Wed, 11 Sep 2019 00:02:09 +0200 Subject: [PATCH] Add another style of policyResource (#805) --- src/authMatchPolicyResource.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/authMatchPolicyResource.js b/src/authMatchPolicyResource.js index 92b15eb5d..7546f2b18 100644 --- a/src/authMatchPolicyResource.js +++ b/src/authMatchPolicyResource.js @@ -23,6 +23,10 @@ module.exports = function authMatchPolicyResource(policyResource, resource) { return true; } + if (policyResource === 'arn:aws:execute-api:*:*:*') { + return true + } + if (policyResource.includes('*') || policyResource.includes('?')) { // Policy contains a wildcard resource