Hi there serverless community,
i am using the serverless.ts config currently.
i couldn’t find much examples in the documentation how to use the ts syntax to reference an sns or sqs resource by its template name for a lambda destination. Would something like this work?
i want to achieve that i can create a stage based name for the SNS or SQS service and reference that name as a lambda destination for onSuccess or onFailurea
this is just an example for the config …
the names of the sns and sqs resources are created via environment variables that also take into account the stage parameters.
thanks for help!