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.

Converting from Expired API Key to Cognito causes Cloudformation to fail.

See original GitHub issue

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum

Describe the bug Switching to Cognito auth type from an expired API key causes amplify push to fail with the error 404 not found.

To Reproduce Steps to reproduce the behavior:

  1. Create a new project and use API Key as the auth type
  2. Expire the API key
  3. Convert existing project to Cognito using amplify api update
  4. Execute amplify push
  5. This would cause Cloudformation to fail.

Expected behavior Auth type to switch to Cognito instead of API key

Screenshots image

Additional context Using Amplify for Javascript with React. Using Amplify version 1.1.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ChristopheBougerecommented, Oct 13, 2019

To be more specific you don’t edit the value but you redeploy the stack with a new value for the parameter.

  • In the console, you probably have 2 failing stacks. One is the root, the other one is the API (a nested stack)
  • Select the nested stack, and click on update
  • Confirm that you want to update the nested stack
  • “Use current template”
  • Then you can update parameters (APIKeyExpirationEpoch)
  • Confirm and deploy This kind of manual action is usually not recommended because you could desynchronize with your amplify project. But it worked for me and other solutions didn’t work.
2reactions
gitzhouxinyu1commented, Sep 24, 2019

Any updates? I still got the same error with latest cli

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve the "Internal Failure" error in CloudFormation - AWS
To resolve this issue using AWS CloudTrail, complete the steps in the Find the failed API operations in your CloudTrail event logs section....
Read more >
Using the Cognito Hosted UI with an Application Load Balancer
If the user is no longer authorized (either the authorization has expired or the user was explicitly logged out), then what happens next...
Read more >
Upgrading to Serverless Framework v3
Upgrading to Serverless Framework v3. Serverless Framework v3 contains a few breaking changes that may impact some projects. This guide helps users upgrade ......
Read more >
requests-aws4auth - PyPI
Version 0.8 introduces request date checking and automatic key ... code to handle an authentication failure response from AWS caused by the date...
Read more >
AWS Cognito & Amplify Auth - Bad, Bugged, Baffling - Reddit
Okay, we get an error: TRUE_VALUE can not be converted to a String, I guess booleans are not supported? I mean CDK and...
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