iann0036 / aws.permissions.cloud

A crowdsourced AWS IAM permissions reference.
https://aws.permissions.cloud
MIT License
87 stars 9 forks source link

Possibly broken ARN template in S3Control_CreateAccessPoint ? #18

Open exoego opened 1 year ago

exoego commented 1 year ago

https://aws.permissions.cloud/api/s3-outposts#S3Control_CreateAccessPoint

image

I am not sure what is the expected rendering of ARN template, but it appears that /accesspoint/Name is unexpectedly added after /g (RegExp global flag) 🤔

source: "%%regex%${Bucket}%/^arn:aws:s3-outposts:.+?:.+?:outpost\\/(.+?)\\//g%%"
rendered:                    /^arn:aws:s3-outposts:.+?:.+?:outpost\/(.+?)\//g/accesspoint/Name
                                                                             ^^^^^^^^^^^^^^^^^
iann0036 commented 1 year ago

Hey @exoego,

This one is actually intentional, though could be represented better. Everything after the /g is outside of the conditional match (i.e. the matching has ended and the rest is a mandatory suffix.

I'll look into a better representation.