My requirement is to:
Trace the log event in cloud trail when a SSO user assumes a specific role (developer-full-access) using AWS SSO home page.
Send an email notification to a destination that says which SSO user has assumed that role.
What is Event Name called when a SSO users assumes a role to login into a specific account? I can see there is a new IAM
event called DescribeAccountAttributes
upon user assuming a role, but I am wondering if there is any better event to act upon in this scenario?
Can my requirements be full filled by creating a new Rule
in AWS EventBridge
or do I need to have a custom parser running in Lambda
for example that parse every single event in CloudTrail and filter the ones I am interested?