[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.

Czy ta odpowiedź była pomocna? Tak Nie

Wyślij opinię
Przykro nam, że nie mogliśmy Ci pomóc. Pomóż nam dopracować ten artykuł, pozostawiając informacje zwrotne.