amazon-web-servicesaws-secrets-manageraws-event-bridge

Amazon EventBridge - Rotation Succeeded Event


I am trying to create a rule that will trigger everytime AWS Secrets Manager Rotation is succeeded. However the rule was not triggered even though Rotation Succeeded Event is log in Event History.

Here's my event pattern:

{
  "detail-type": [
    "AWS API Call via CloudTrail"
  ],
  "detail": {
    "eventSource": [
      "secretsmanager.amazonaws.com"
    ],
    "eventName": [
      "RotationSucceeded"
    ]
  }
}

Is there anything wrong in my event pattern? I tried PutSecretValue event and it is working, only in RotationSucceeded is not working. Thanks


Solution

  • To use AWS API Call via CloudTrail in EB, you must enable CloudTrial trial:

    To record events with a detail-type value of AWS API Call via CloudTrail, a CloudTrail trail with logging enabled is required.