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

此回答是否有所帮助?

Send feedback
抱歉没能帮到您。欢迎您给出反馈以帮助我们改善本文档。