sbstjn / serverless-sqs-alarms-plugin

Serverless wrapper to setup CloudWatch Alarms for SQS
https://www.npmjs.com/package/serverless-sqs-alarms-plugin
MIT License
36 stars 22 forks source link

Fails when queue name is intrinsic function #12

Open cw43 opened 5 years ago

cw43 commented 5 years ago

Using ImportValue for queue name as following:

sqs-alarms:

- thresholds: [1, 10, 50, 100]
  queue: { 'Fn::ImportValue': "create-events:MyQueueName" }
  topic: "AlarmsTopicName"

Fails with the following error: this.queue.replace is not a function

nolde commented 3 years ago

I've made a fork that fixes this issue, @cw43.

https://github.com/digitalmaas/serverless-plugin-sqs-alarms