Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IAM sample regex #1284

Merged
merged 1 commit into from
Mar 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/book/comparison-to-other-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ allow {
# actions_match is true if input.action matches one in the list
actions_match {
# iterate over the actions in the list
actions := ["s3:List*","s3:Get*"]
actions := ["s3:List.*","s3:Get.*"]
action := actions[_]
# check if input.action matches an action
regex.globs_match(input.action, action)
Expand All @@ -300,7 +300,7 @@ actions_match {
# resources_match is true if input.resource matches one in the list
resources_match {
# iterate over the resources in the list
resources := ["arn:aws:s3:::confidential-data","arn:aws:s3:::confidential-data/*"]
resources := ["arn:aws:s3:::confidential-data","arn:aws:s3:::confidential-data/.*"]
resource := resources[_]
# check if input.resource matches a resource
regex.globs_match(input.resource, resource)
Expand Down