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
demandé il y a 2 mois124 vues
1 réponse
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.

EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
EXPERT
Leo K
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions