-
Notifications
You must be signed in to change notification settings - Fork 113
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
'${construct:myQueueConstruct.dlqArn}' can't be resolved in functions.events.sqs #404
Comments
It seems like the dlqArn doesn't return the ARN like I would expect. FYI: AAAAAAAAA, is fake data the value is something else, but i cant find it in this queue. I would expect something like in the reference here. I am confused where is this from? |
The And resolves to
Serverless does't seem to understand, that the placeholder gets resolved into an ARN. |
Hi, unfortunately that seems to be a limitation with Serverless Framework. Can you try this:
|
I am also seeing this issue, but when following your example: I get the following message: |
Mmh can you try this: ...
handler: 'pathToHandler.handler'
events:
- sqs:
arn: ${construct:myContructQueue.dlqArn}
... sorry for the back and forth |
Description
I want to use the dlqArn of a construct to send the errors to another lambda function.
When i try to use it in functions.events.sqs I get this error message when I try to deploy
Configuration error at 'functions.handleError.events.0.sqs': must match pattern "^arn:"
When I try to use this placeholder in a ENVIRONMENT of the lambda function, like in the queue.md example, it works fine.
Maybe the preprocessor can't handle this placeholder?
How to Reproduce
Additional Information
No response
The text was updated successfully, but these errors were encountered: