Closed tim-hutchinson closed 10 months ago
Related, but not the same as this: Exact names appear to allow a ` character, but wildcarded names do not. We were originally going to swap our equivalent name pattern
Name:AWS SSO *`, but noticed it also would fail.
Describe the bug When setting patterns that include a
-
character and deploying with CloudFormation/ from the Serverless Application Repository, CloudFormation will reject the request, due to failing the regexTo Reproduce Steps to reproduce the behavior:
GoogleGroupMatch = "email:aws-sso-*"
Expected behavior Successfully deploying the stack
Additional context Looking at the regex, it seems that the
-
character is not escaped from several places, resulting in it being treated as a range operator instead of a hyphen literal.