greedy regex sometimes replaces too many parameters in a single resource template
OlafConijn opened this issue · 1 comments
OlafConijn commented
update
- rootcause of the problem is that the regex here matches greedy. multiple
${xxxx} ${yyyy}
expressions get collapsed into 1. - I believe the regex should be
/\$\{.*?\}/g
instead of/\$\{.*\}/g
previous issue (not the rootcause) below
currenlty, execute-api:Invoke permissions use arn:aws:execute-api:partition:account:*
as resource.
would be great to map the properties of this call into a template:
"ApiEndpoint": "abcdef123.execute-api.us-east-1.amazonaws.com",
"Method": "GET",
"Stage": "prod",
"Path": "/path/to/resource",
```_
iann0036 commented
Awesome catch, thanks!