assertible / lambda-cloudwatch-slack

Send AWS CloudWatch notifications to a Slack channel using Lambda
https://assertible.com/blog/npm-package-lambda-cloudwatch-slack
MIT License
482 stars 249 forks source link

ASG name is not appearing in the slack notification #64

Open anil-venkata opened 3 years ago

anil-venkata commented 3 years ago

Hi Team,

We are having some strange issue with the ASG notification, sometime the autoscaling Name is appearing in the specified filed and some time it is not appearing.

image

Some times it does appear like this.

image

, but to verify not an issue with the SNS , we have mail subscription enabled for the same SNA topic and we are receiving all the relevant information in the mail, but not in the Slack.

we have 4 ASGs and especially this is happening with one of the ASG name all the times, and for the remaining it is intermittent , so not sure what could be the issue.

same thing happening for termination alerts also.

Please help us here. Thanks.

anil-venkata commented 3 years ago

Oops, i am sorry raising the ticket before checking

after checking the code, i figured it out some issue with the SNSit self.

After seeing this code.

https://github.com/assertible/lambda-cloudwatch-slack/blob/bf39232dd75f86fa77b1c8b52ac9ff76f31aa3ff/index.js#L283

i see the how the slack alerts are configured and after checking the subject of the mail, i realised the issue with the subject it self send by the SNS

I will check with AWS and come back here.