Skip to content

Commit

Permalink
Add another style of policyResource (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
triptec authored and dnalborczyk committed Sep 11, 2019
1 parent 636af2a commit bbcba5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/authMatchPolicyResource.js
Expand Up @@ -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

Expand Down

0 comments on commit bbcba5f

Please sign in to comment.