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

Possibly broken ARN template in S3Control_CreateAccessPoint ? #18

Open
exoego opened this issue Sep 29, 2023 · 1 comment
Open

Possibly broken ARN template in S3Control_CreateAccessPoint ? #18

exoego opened this issue Sep 29, 2023 · 1 comment

Comments

@exoego
Copy link
Contributor

exoego commented Sep 29, 2023

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
Copy link
Owner

iann0036 commented Oct 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants