· AI dev tools

Amazon Cognito launches point-in-time recovery for user pools

An operator at AnyCompany accidentally deleted and modified users while running a bulk change script on their Amazon Cognito user pool, anycompany-prod-user-pool.


By 15:54 PDT, support began receiving reports of failed sign-ins, prompting the operator to halt the script. The team needed the pool to reflect its state from 15:39 PDT, leading them to employ PITR and preview the restoration.

Amazon Cognito now offers point-in-time recovery (PITR) for user pools, allowing restoration to an earlier moment if data is corrupted by a faulty migration or an erroneous bulk operation. This feature is automatically active for user pools on eligible feature plans. Previously, safeguarding user pool data required building a custom solution, which was difficult to operate and complicated when trying to version exports to find a clean time.

PITR works by tracking changes on eligible user pools, enabling recovery to any point within the defined recovery window, which varies by feature plan. A crucial detail is how passwords behave: a recovery recreates passwords for users it restores, but users who still exist and changed their password after the target time retain their existing credentials; the recovery does not revert legitimate password changes.

The recovery process is a three-step, preview-based workflow. First, one initiates the recovery to a specific time using `InitiatePointInTimeRecovery`, which pauses writes and generates a preview while read operations continue normally, returning a `RestoreId`. Second, `DescribePointInTimeRecovery` allows review, detailing how many users, groups, MFA settings, and passkeys the rollback would create, update, or delete to match the target state. Finally, the team either approves with `StartPointInTimeRecovery` or cancels with `CancelPointInTimeRecovery`.

If the preview confirms the scope, the team approves the rollback, restoring anycompany-prod-user-pool to its 15:39 PDT condition. Writes resume automatically once the process finishes or is halted. Because PITR reverts the data within the existing pool rather than creating a new one, application integrations remain unchanged; configuration changes made after the rollback point—like custom attributes or updated Lambda triggers—are preserved, and the user pool ID stays the same.

PITR complements Multi-Region replication, addressing different failure types. While MRR maintains a synchronized replica in another Region for failover during primary Region impairment, PITR handles data integrity issues, such as state corruption from bulk operations, by rolling back to a specific point in time.

Security demands that recovery permissions be treated with the same gravity as other high-impact administrative access. It is advised to separate the roles for initiation and approval; an operator can be granted `InitiatePointInTimeRecovery`, while an approver receives `StartPointInTimeRecovery`. Both roles require permissions to review the preview and cancel the operation.

Why it matters

This new tooling significantly reduces the operational burden of data protection, replacing complex manual export/reconstruction processes for developers. It provides a crucial safety net for application identities and attributes, allowing for controlled rollbacks after erroneous bulk operations.

Earlier coverage

Related coverage

Also worth reading

  1. next.js 16.5.0-canary.62 released with switchyard updates, Turbopack fixes
  2. AWS releases API Portal, API Security, AI Security for API and AI endpoint protection
  3. Anthropic Claude Ship lets Claude review, fix, and approve routine pull requests
  4. Signal blocks screenshots on Apple, Google OS to protect data from AI agents
  5. LinkedIn builds view-agnostic analytics system using shared MeasurableNode contract