Skip to content

[gen2-migration] Adopted Cognito User Pool: generated auth schema drifts from the pool's live schema attributes #14975

Description

@sarayev

Summary

The auth schema synthesized for an adopted User Pool is derived from the Gen1 CloudFormation templates, not from the pool's live configuration (e.g. DescribeUserPool). Attributes added to the pool via the console/SDK after the Gen1 template was written are missing, so the generated schema drifts from the live pool. Because schema attributes on an existing pool are update-restricted, the deploy fails (and in the worst case would force pool replacement).

Error

Invalid request provided: Existing schema attributes cannot be modified or deleted.

Expected

Introspect the adopted pool's live schema attributes at migration time and pin the generated amplify/auth schema to match, so the deploy is a no-op on schema.

Note

Distinct from #14932 (that is a TypeScript-emission quoting crash for custom attributes; this is live-vs-template schema drift). Cross-referencing for context.

Type

Bug / blocker

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions