Trigger Lambda function upon Adding account to organization

0

How to invoke a lambda function when a either user account is created and invited to organization or when existing account is added to organization.

Basically, how to track this activity

Keerthi
已提問 1 個月前檢視次數 119 次
1 個回答
1

You can do this via a CloudTrail trail - AWS Organizations will log all API calls here such as inviting an account.

If your trail is sent to CloudWatch Logs you can create a Metric Filter with a filter pattern matching the events you want, and you can create an alarm on the filter.

Or you can use the CloudTrail event stream into EventBridge, which is more real-time.

See https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html for more info.

專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
專家
Leo K
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南