fix: Migrate EventBridge rules to EventBridge Schedule - #349
Open
uthiag-aws wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Migrate scheduled compliance rules across 11 SRA solution templates from
AWS::Events::RuletoAWS::Scheduler::Schedule.EventBridge Scheduler provides features not available with EventBridge Rules, including timezone-aware scheduling, flexible time windows, and built-in retry policies with dead-letter queue support.
Resource migration (all 11 templates):
AWS::Events::RulewithAWS::Scheduler::ScheduleAWS::Lambda::Permission(events.amazonaws.com) with a dedicatedAWS::IAM::Rolefor the scheduler principal (scheduler.amazonaws.com)aws:SourceAccountcondition on the scheduler role for confused-deputy protectionNew parameters added to each template:
pFlexibleTimeWindowMode— OFF (exact) or FLEXIBLE (spread invocations to reduce thundering herd)pFlexibleTimeWindowMaxMinutes— window size when using FLEXIBLE mode (1–1440 minutes)pScheduleExpressionTimezone— IANA timezone for the schedule expressionpScheduleRetryEnabled— opt-in retry policy (185 attempts over 24h with exponential backoff)pScheduleDeadLetterQueueArn— optional SQS DLQ for failed invocationsTemplates updated:
sra-account-alternate-contacts.yamlsra-ami-bakery-org-configuration.yamlsra-config-org-configuration.yamlsra-detective-org-configuration.yamlsra-ec2-default-ebs-encryption.yamlsra-inspector-org-configuration.yamlsra-patch_mgmt-configuration.yamlsra-s3-block-account-public-access.yamlsra-security-lake-org-configuration.yamlsra-securityhub-org-configuration.yamlsra-shield-advanced-configuration.yamlFixes #338
By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].
Apache 2.0 License