From e95134c66c6544db6b972f4aa4bc08717ff71bd6 Mon Sep 17 00:00:00 2001 From: Ian Mckay Date: Thu, 29 Feb 2024 10:13:00 +1100 Subject: [PATCH] Tweak regex matches for #35 --- iamlivecore/map.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iamlivecore/map.json b/iamlivecore/map.json index 6d276bb..fc8b253 100644 --- a/iamlivecore/map.json +++ b/iamlivecore/map.json @@ -24606,7 +24606,7 @@ "action": "iam:ListAttachedGroupPolicies", "resource_mappings": { "GroupNameWithPath": { - "template": "%%regex%${PathPrefix}%/^\\/?(.+?)\\/?$/g%%/${GroupName}" + "template": "%%regex%${PathPrefix}%/^\\/?(.+?\\/)?$/g%%${GroupName}" } } } @@ -24616,7 +24616,7 @@ "action": "iam:ListAttachedRolePolicies", "resource_mappings": { "RoleNameWithPath": { - "template": "%%regex%${PathPrefix}%/^\\/?(.+?)\\/?$/g%%/${RoleName}" + "template": "%%regex%${PathPrefix}%/^\\/?(.+?\\/)?$/g%%${RoleName}" } } } @@ -24626,7 +24626,7 @@ "action": "iam:ListAttachedUserPolicies", "resource_mappings": { "UserNameWithPath": { - "template": "%%regex%${PathPrefix}%/^\\/?(.+?)\\/?$/g%%/${UserName}" + "template": "%%regex%${PathPrefix}%/^\\/?(.+?\\/)?$/g%%${UserName}" } } } @@ -24671,7 +24671,7 @@ "action": "iam:ListInstanceProfiles", "resource_mappings": { "InstanceProfileNameWithPath": { - "template": "%%regex%${PathPrefix}%/^\\/?(.+?)\\/?$/g%%/*" + "template": "%%regex%${PathPrefix}%/^\\/?(.+?\\/)?$/g%%*" } } }