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

Source ARN like arn:aws:sqs:eu-central-1:12345:queue-name is rejected #12

Open
joern-belonio opened this issue Jul 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joern-belonio
Copy link

Current Behavior

Its not possible to deploy with a valid sqs source arn, because arn:aws:sqs:eu-central-1:12345:queue-name the decimals in the regex are not escaped.

^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-d{1})?:(d{12})?:(.+)$

d{1} means 1 character d, but expected is \d{1} as one digit in eu-central-1

Expected Behavior

Valid arns should be accepted

Steps to Reproduce the Problem

  1. create a pipe with SQS Source in region eu-central-1
  2. sls deploy
  3. fails with "EventBridge Pipes Resource creation Failed: arn property is invalid for "

Fix:

escape d{1} and d{12} in regex with double backslash (\d)

Environment

  • Version: 1.0.1
  • Platform: Linux
@joern-belonio joern-belonio added the bug Something isn't working label Jul 4, 2024
@marco-belonio
Copy link

Fixed by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants