Kompira Pigeon & AWS CloudWatch with amazon simple queue service
回答済みDear support,
Good day.
I would like to ask if is it possible to use SQS instead of SNS in Lambda function when connect to a kompira Pigeon? What parameter do i need to include in my function.
Thank you very much for your help.
Best regards,
-
Dear Fam,
AWS SQS is similar to SNS. So you can refer our sample for SNS.
Lambda function sample to invoke Kompira Pigeon when CloudWatch alarm's action received via SNS.
There are some differences in message structure between the two services. You have to use Records[n].body instead of Records[n].SNS.Message to get content of message. So you should replace
const message = record.Sns.Message;
to
const message = record.body;
to use SQS message.
Please read them as references.
Best regards,
サインインしてコメントを残してください。
コメント
2件のコメント