[IAM] How to Trigger Alarms When Creating or Deleting IAM Users

Print
  1. Create SNS Topic 

    • To trigger alarms for IAM User creation/deletion, you must create the topic in us-east-1 as well (because IAM is a global resource). 

    • Keep encryption, access policies, and other settings at their default values. 

  2. Set SNS Subscription 

    • Create a subscription with the protocol set to email. 

    • A confirmation email will be sent to the specified email address, and once confirmed, the subscription is registered properly. 

  3. Create Create/Delete IAM User Event Rule (performed in us-east-1) 

    • Go to EventBridge > Events > Rules > Create Rule. 

      • Select Event Pattern > Use the predefined pattern provided by the service. 

      • Service Provider: AWS

      • Service Name: IAM

      • Event Type: AWS API Call via CloudTrail

      • Add specific actions: CreateUser, DeleteUser. 

    • Connect the SNS topic as the target.

Cette réponse a-t-elle été utile ? Oui Non

Envoyer vos commentaires
Désolés de n'avoir pu vous être utile. Aidez-nous à améliorer cet article en nous faisant part de vos commentaires.