Skip to content

[gen2-migration] Adopted Cognito User Pool: generator includes immutable UsernameConfiguration in the update changeset #14974

Description

@sarayev

Summary

When adopting a pre-existing Cognito User Pool, the generated auth stack includes UsernameConfiguration, which is create-only in CloudFormation, so the update deploy fails.

Error

[CFNUpdateNotSupportedError] ... Invalid request provided: Updates are not allowed for property - UsernameConfiguration.

Details

The codegen emits UsernameConfiguration as a raw passthrough for adopted pools; there is no automatic addPropertyDeletionOverride('UsernameConfiguration') for the adopted-pool case. (In some MFA/SMS configurations the adopt-time path also emits duplicate UsernameConfiguration deletion overrides — same root cause: the generator does not reconcile immutable properties for an adopted pool.)

Expected

For an adopted pool, immutable properties such as UsernameConfiguration should be omitted from the update changeset automatically.

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