Event Poller

The Event Poller is the simplest mechanism for detecting AWS resource changes. Guardrails periodically queries the CloudTrail LookupEvents API to find recent API activity, then processes those events to update the CMDB and trigger controls.

The Event Poller is enabled by default on newly imported accounts and requires no AWS infrastructure. It works immediately using the existing IAM role credentials.

When to Use the Event Poller

The Event Poller is appropriate for:

For production environments, Global Event Handlers are recommended. They provide near real-time event delivery without the scalability limitations of CloudTrail polling.

Prerequisites

Configure the Event Poller

The Event Poller is controlled by three policies. Navigate to Policies > Actions > New Policy Setting to configure them.

Enable or Disable

Set AWS > Turbot > Event Poller to Enabled or Disabled.

ValueDescription
EnabledGuardrails polls CloudTrail on a regular interval.
DisabledPolling is stopped. Use this when switching to event handlers.

[!IMPORTANT] The Event Poller automatically disables itself when Event Handlers (global or regional) are set to Enforce: Configured. Never run both simultaneously. This wastes API calls and can cause duplicate event processing.

Polling Interval

Set AWS > Turbot > Event Poller > Interval to control how frequently Guardrails polls.

ValueDescription
Every 1 minuteLowest latency, highest API usage.
Every 2 minutesDefault. Good balance for most environments.
Every 5 minutesReduced API usage for low-activity accounts.
Every 10 minutesMinimum API usage. Acceptable for development environments.

Polling Window

Set AWS > Turbot > Event Poller > Window to control how far back each poll looks for events.

ValueDefaultDescription
15 minutesYesMust be greater than the interval. Recommended: at least 2x the interval.
20 minutesProvides more overlap to catch delayed CloudTrail events.
30 minutesMaximum window. Use for accounts with high CloudTrail latency.

[!NOTE] The window must always be greater than the interval. A wider window means more overlap between polls, reducing the chance of missing events that arrive late in CloudTrail.

Limitations

For environments where these limitations matter, upgrade to Global Event Handlers.

Troubleshooting

IssueSolution
Events not being detectedVerify CloudTrail is active in the account. Check that the Event Poller policy is Enabled and the AWS > Turbot > Event Poller control is in ok state.
High latency between change and detectionReduce the polling interval. Consider upgrading to event handlers for near real-time detection.
API throttling errorsIncrease the polling interval or reduce the number of polled accounts. Consider upgrading to event handlers.
Duplicate eventsEnsure Event Handlers are not also enabled on the same account. Only one mechanism should be active.
Further assistanceOpen a Support Ticket