question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CloudFormation stack creation fails when I try to use an existing Cognito User Pool and App client

See original GitHub issue

I’m trying to get the stack to work with an existing Cognito user pool and app client. I’m specifying the correct parameters in the template.

The stack creation fails when the User Pool Client Update Handler throws an exception.

Here’s the stack trace:

ERROR InvalidParameterException: Invalid range for token validity. at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:52:27) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10) at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:688:14) at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10) at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12) at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10 at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9) at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:690:12) at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18) { code: 'InvalidParameterException',

Any ideas what might be causing this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
james1050commented, Nov 26, 2021

Thanks Otto and thank you for your great work on this sample. It’s very useful.

1reaction
ottokrusecommented, Nov 24, 2021

Did some more testing, became convinced this is fixed (🤞), merged and released v2.0.16 to the SAR

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::Cognito::UserPoolClient - AWS CloudFormation
If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update...
Read more >
Use existing Cognito User pool with amplify auth #779 - GitHub
My app uses Lambda Function, APIGW and GraphQL Api. I did not execute amplify add auth but I see Auth resource cognitoab3b5d1a getting...
Read more >
Use an existing Cognito User Pool and Identity Pool
Import an existing Cognito User Pool​​ Select the "Cognito User Pool only" option when you've run amplify import auth . In order to...
Read more >
How can I set the allowed custom scopes of a Cognito User ...
For this I'm using the AWS JS SDK. I want to set 'Allowed Custom Scopes' for the app clients in a specific user...
Read more >
Add an existing Amazon Cognito user pool and ... - YouTube
In general when we tend to have one Amazon Cognito resource shared between multiple client applications and if we use the Amplify CLI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found