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
Turbot/Ownerpermissions at the Turbot resource level.- A primary region designated for GEH (default:
us-east-1). - Active CloudTrail trails for capturing events.
- Permissions to create IAM roles in the target accounts.
Regional vs Global: What Changes
| Aspect | Regional Event Handlers | Global Event Handlers |
|---|---|---|
| Infrastructure per region | EventBridge rules + targets, SNS topic + subscription | EventBridge rule + target (forwarding only) |
| Primary region | None: each region is independent | One region handles SNS topic + subscription |
| Cross-region forwarding | None | IAM role enables secondary → primary event bus forwarding |
| Cost | SNS topic in every region | SNS 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:
| Policy | Setting |
|---|---|
AWS > Turbot > Service Roles | Enforce: Configured |
AWS > Turbot > Service Roles > Event Handlers [Global] | Enabled |
AWS > Turbot > Service Roles > Configuration Recording | Disabled |
AWS > Turbot > Service Roles > Default EC2 Instance | Disabled |
AWS > Turbot > Service Roles > Default EC2 Instance > SSM Permissions | Disabled |
AWS > Turbot > Service Roles > Flow Logging | Disabled |
AWS > Turbot > Service Roles > SSM Notifications | Disabled |
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.
- Set
AWS > Turbot > Event HandlerstoEnforce: Not configuredat 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.
-
Wait for all
AWS > Turbot > Event Handlerscontrols to reachokstate with the message "Empty configuration - no action needed." -
Delete the Event Handler policy settings to complete decommissioning. This changes the controls to
Skipped.
Step 4: Verify
-
Primary region: Create a resource in the primary region and confirm Guardrails detects it within seconds.
-
Secondary region: Create a resource in a different region and confirm detection. This validates cross-region forwarding.
-
Cleanup: Confirm that legacy REH resources (SNS topics, EventBridge rules) are removed from the CMDB.
Troubleshooting
| Issue | Solution |
|---|---|
| Residual REH resources in CMDB | Rerun CMDB controls with filter controlTypeId:'tmod:@turbot/aws-sns#/control/types/topicCmdb','tmod:@turbot/aws-events#/control/types/ruleCmdb' |
| Events not flowing from secondary regions | Verify CloudTrail is active. Check the EventBridge IAM role permissions. Confirm SNS encryption policies allow event handling. |
| Duplicate events during migration | Expected briefly while both REH and GEH are active. Resolve by completing Step 3 (decommissioning REH). |
| Further assistance | Open a Support Ticket |