skip to Main Content

Does AWS EventBridge rule with a schedule fire right away when it is enabled?

Have defined an EventBridge rule, which is disabled by default. new Rule(this, 'EmailRule', { ruleName: 'email-event-rule', description: 'trigger email handler', enabled: false, eventPattern: { detailType: ['email-event-rule-event'] }, targets: [new LambdaFunction(emailHandlerConstruct.getLambda())], schedule: Schedule.rate(Duration.hours(1)) }); In a certain scenario it is enabled.…

VIEW QUESTION

Is there a way to create aws eventbridge rule to apply for only one resource? – Amazon web services

for example I have a iam eventbridge rule that is triggered for any changes to the roles as below: { "source": ["aws.iam"], "detail-type": ["AWS API Call via CloudTrail"], "detail": { "eventSource": ["iam.amazonaws.com"], "eventName": ["AttachGroupPolicy", "AttachRolePolicy", "AttachUserPolicy", "DetachGroupPolicy", "DetachRolePolicy", "DetachUserPolicy", "PutGroupPolicy",…

VIEW QUESTION
Back To Top
Search