diff --git a/src/api-gateway/authMatchPolicyResource.js b/src/api-gateway/authMatchPolicyResource.js index 00c216d34..9aecdcd57 100644 --- a/src/api-gateway/authMatchPolicyResource.js +++ b/src/api-gateway/authMatchPolicyResource.js @@ -21,6 +21,10 @@ export default function authMatchPolicyResource(policyResource, resource) { return true } + if (policyResource === 'arn:aws:execute-api:*:*:*') { + return true + } + if (policyResource.includes('*') || policyResource.includes('?')) { // Policy contains a wildcard resource