1 Answer
- Newest
- Most votes
- Most comments
1
Indeed, unfortunately it seems that you can't customize the message...
AWS Chatbot itself is a managed service, so it may not be as customizable as it could be.
If you want to be notified of necessary messages, you will have to create messages using Lambda or other methods without AWS Chatbot.
https://aws.amazon.com/chatbot/faqs/?nc1=h_ls
Q: Can I add custom formatting to AWS Chatbot notifications? No. You cannot customize the formatting of AWS Chatbot notifications.
Relevant content
- asked 5 years ago
- asked 6 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago
Thank you for your response. During testing I attempted to have a lambda publish the message to the chatbot's SNS topic but this method is not supported either. Pretty much if something isn't working out of the box then you can't really use chatbot for it.
My solution that I will likely go with is using webhooks and a lambda instead to get other information from events. Chatbot would still be useful for alarms, but that is the only real use I am able to see from it other than running CLI commands from the slack channel.
I think what you are trying to do is best when customizing the message. Slack exposes the following API, which can be used to send messages. https://api.slack.com/methods/chat.postMessage