handle missing assumed role in aws alerts
This commit is contained in:
parent
79e77148f7
commit
42cf3f75dc
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ def handle_cloudtrail_sts(payload: Any) -> List[Tuple[str, str]]:
|
||||||
for x in [
|
for x in [
|
||||||
f"<font color={color}>**🚨 ALERT[{subject}]** </font>: {title}",
|
f"<font color={color}>**🚨 ALERT[{subject}]** </font>: {title}",
|
||||||
f"- **Region**: {region}",
|
f"- **Region**: {region}",
|
||||||
f"- **Assumed Role**: {assumed_role}",
|
(f"- **Assumed Role**: {assumed_role}" if assumed_role else None),
|
||||||
f"- **Event Time**: {event_time}",
|
f"- **Event Time**: {event_time}",
|
||||||
f"- **Account ID**: {account_id}",
|
f"- **Account ID**: {account_id}",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue