Skip to content

fix: Userpool does not exist#14262

Merged
ShadowCat567 merged 4 commits intodevfrom
cognito-fix
Sep 25, 2025
Merged

fix: Userpool does not exist#14262
ShadowCat567 merged 4 commits intodevfrom
cognito-fix

Conversation

@ShadowCat567
Copy link
Copy Markdown
Contributor

@ShadowCat567 ShadowCat567 commented Sep 22, 2025

Description of changes

After the SDK V2->V3 migrations PR that affected auth, geo, and predictions was released, it was reported that running amplify push in some instances, after adding or updating something in the auth category, would show the error User pool client [clientId] does not exist..
This is caused by the migrated V3 clients consuming credentials that were being served to them using the V2 style and falling back to using the default profile.

V2 Style Credentials:
{
  accessKeyId: accessKeyId,
  secretAccessKey: secretAccessKey,
  region: region
}
V3 Style Credentials: 
{
  credentials: {
    accessKeyId: accessKeyId,
    secretAccessKey: secretAccessKey
  },
  region: region
}

Issue #, if available

#14260

Description of how you validated changes

Reproduced the issue and verified that the error no longer appeared when using an environment identical to the reproduction with the fix enabled.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ShadowCat567 ShadowCat567 changed the title fix: cognito provider Fix: Userpool does not exist Sep 25, 2025
@ShadowCat567 ShadowCat567 marked this pull request as ready for review September 25, 2025 18:01
@ShadowCat567 ShadowCat567 requested a review from a team as a code owner September 25, 2025 18:01
@mrgrain mrgrain changed the title Fix: Userpool does not exist fix: Userpool does not exist Sep 25, 2025
@ShadowCat567 ShadowCat567 merged commit 5464abe into dev Sep 25, 2025
5 checks passed
@ShadowCat567 ShadowCat567 deleted the cognito-fix branch September 25, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants