Migrate to Global Event Handlers

In this guide, you will migrate from Regional Event Handlers (REH) to Global Event Handlers (GEH), decommission the regional infrastructure, and verify the new setup. GEH consolidates event handling into a single primary region, reducing costs and operational complexity while maintaining full coverage across all regions.

Prerequisites

Regional vs Global: What Changes

AspectRegional Event HandlersGlobal Event Handlers
Infrastructure per regionEventBridge rules + targets, SNS topic + subscriptionEventBridge rule + target (forwarding only)
Primary regionNone: each region is independentOne region handles SNS topic + subscription
Cross-region forwardingNoneIAM role enables secondary → primary event bus forwarding
CostSNS topic in every regionSNS topic in one region only

Step 1: Deploy the EventBridge IAM Role

GEH requires an IAM role that allows EventBridge to forward events from secondary regions to the primary region's event bus.

Option A: Turbot-Managed Service Roles

Enable AWS > Turbot > Service Roles set to Enforce: Configured. If you only need GEH, disable unrelated service roles:

PolicySetting
AWS > Turbot > Service RolesEnforce: Configured
AWS > Turbot > Service Roles > Event Handlers [Global]Enabled
AWS > Turbot > Service Roles > Configuration RecordingDisabled
AWS > Turbot > Service Roles > Default EC2 InstanceDisabled
AWS > Turbot > Service Roles > Default EC2 Instance > SSM PermissionsDisabled
AWS > Turbot > Service Roles > Flow LoggingDisabled
AWS > Turbot > Service Roles > SSM NotificationsDisabled

Option B: Self-Managed Role

Create the role manually in each account. See Option B: Custom IAM Role in the Global Event Handlers guide for the trust policy, permissions policy, and a calculated policy Terraform example for dynamic IAM Role ARN lookup across accounts.

Step 2: Deploy Global Event Handlers

Set AWS > Turbot > Event Handlers [Global] to Enforce: Configured at the Turbot (workspace root) level.

Wait for all AWS > Turbot > Event Handlers [Global] controls to reach ok state with the message "All required resources exist."

Step 3: Decommission Regional Event Handlers

[!IMPORTANT] Deploy GEH before decommissioning REH to avoid gaps in event coverage.

  1. Set AWS > Turbot > Event Handlers to Enforce: Not configured at the Turbot level. This triggers Terraform cleanup of the regional infrastructure.

[!WARNING] Do not set the policy to Skip. That would leave regional infrastructure deployed alongside GEH, effectively doubling the events sent to Guardrails.

  1. Wait for all AWS > Turbot > Event Handlers controls to reach ok state with the message "Empty configuration - no action needed."

  2. Delete the Event Handler policy settings to complete decommissioning. This changes the controls to Skipped.

Step 4: Verify

  1. Primary region: Create a resource in the primary region and confirm Guardrails detects it within seconds.

  2. Secondary region: Create a resource in a different region and confirm detection. This validates cross-region forwarding.

  3. Cleanup: Confirm that legacy REH resources (SNS topics, EventBridge rules) are removed from the CMDB.

Troubleshooting

IssueSolution
Residual REH resources in CMDBRerun CMDB controls with filter controlTypeId:'tmod:@turbot/aws-sns#/control/types/topicCmdb','tmod:@turbot/aws-events#/control/types/ruleCmdb'
Events not flowing from secondary regionsVerify CloudTrail is active. Check the EventBridge IAM role permissions. Confirm SNS encryption policies allow event handling.
Duplicate events during migrationExpected briefly while both REH and GEH are active. Resolve by completing Step 3 (decommissioning REH).
Further assistanceOpen a Support Ticket