terraform-aws-clickops-notifier
terraform-aws-clickops-notifier copied to clipboard
Shorten size of slack messages
Seems that the event JSON is the largest portion of the screen. I couldn't even shrink my desktop screen enough to show the full event.
We could probably reduce the message by omitting the event json and maybe adding a link to the aws-console page for the full event json?
Or we can use the secondary attachments in slacks block kit. It shows the first 10 lines and adds a show more button to see more.
Related code
- https://github.com/cloudandthings/terraform-aws-clickops-notifier/blob/b183bc5bae0cbc0ce582ed3bf8556bacdc65086b/clickopsnotifier/messenger.py#L34
Related issue
- https://github.com/cloudandthings/terraform-aws-clickops-notifier/issues/66
