Notify multiple channels from a single topic #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, very useful bit of code here - thanks for writing it.
I have an addition I'd like to contribute; when hosts go down, we need to notify our NOC, as well as several sets of Operators. The modification is the ability to send notifications from a topic to multiple Slack channels.
As well , I made the debugging section a bit more generic. Rather than a hard-coded string the payload is now slurped from hard-coded Python, and environment variables can be set to test different regions and topics:
AWS_REGION
AWS_ACCOUNT_ID
TOPIC_NAME
Hope it's useful!