-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
It would be nice to show the human readable account name (or account alias). One way we can do it is by providing a JSON mapping of account-id to account-name.
| messengers = get_messengers() |
terraform-aws-clickops-notifier/clickopsnotifier/app.py
Lines 59 to 63 in be9694c
| messenger = Messenger( | |
| webhook_type="slack", | |
| webhook_url=webhook_url, | |
| parameter_name=parameter_name, | |
| ) |
terraform-aws-clickops-notifier/clickopsnotifier/messenger.py
Lines 100 to 104 in be9694c
| "fields": [ | |
| { | |
| "type": "mrkdwn", | |
| "text": f"*Account Id*\n{trail_event['recipientAccountId']}", | |
| }, |
Then we can add the following (provided that there is an account name for the account id)
{
"type": "mrkdwn",
"text": f"*Account Name*\n{account_names[trail_event['recipientAccountId']}",
},Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels