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.

Amplify pull misses hostedUIProviderCreds in the team-provider.info file - An error occured during the push operation: Resource is not in the state stackUpdateComplete

See original GitHub issue

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the Amplify Console GitHub Issue Tracker

Describe the bug Amplify pull misses hostedUIProviderCreds in the team-provider.info file. This causes a push to fail with the following cloudformation error:

UPDATE_FAILED      authxxxxxxx630360af         AWS::CloudFormation::Stack Tue Mar 10 2020 23:26:52 GMT+0000 (Greenwich Mean Time) Template format error: Unresolved resource dependencies [hostedUIProviderCreds] in the Resources block of the template

Following resources failed

✖ An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete

Amplify CLI Version 4.13.4

To Reproduce

  • Add federated login to project with add auth and add fb/google oauth details.
  • Then push with amplify push
  • create another project in a different folder and amplify pull (yes this project will update backend)
  • make a change to auth (I changed the redirect urls)
  • amplify push

Expected behavior push should work/update as with the original project

Desktop (please complete the following information):

  • OS: Mac
  • Node Version. v13.5.0

Additional context Missing following section from team-provider.info file:

"categories": {
            "auth": {
                "roarapp630360af": {
                    "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"xxxxxxxxxxxxxxx\",\"client_secret\":\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"},{\"ProviderName\":\"Google\",\"client_id\":\"xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\"client_secret\":\"xxxxxxxxxxxxxxxxxxxxxxxx\"}]"
                }
            }
        }

Adding the section fixes the issue

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
skarensmollcommented, Jun 10, 2020

Any news on this issue? I’ve got the same problem.

4reactions
amuresiacommented, Nov 28, 2020

+1, it’s happening in 4.36.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve: AWS Amplify Resource is not in the state ...
When deploying my new Amplify project (using amplify api push ), I get the following error: Resource is not in the state stackUpdateComplete....
Read more >
Reference - Files and Folders - AWS Amplify Docs
Contains the latest local development state of the checked out environment's resources. The contents of this folder can be modified and running amplify...
Read more >
Quickstart
The Amplify Command Line Interface (CLI) is a unified toolchain to create, integrate, and manage the AWS cloud services for your app. Install...
Read more >
How to add custom resources to AWS Amplify. Add an SQS ...
Add custom resource in backend config. In the first step, you need to add a custom category name and custom resource name within...
Read more >
Learning how to use AWS Amplify in Flutter - LogRocket Blog
Learn about what AWS Amplify is and how to integrate and configure it while building a Flutter to-do demo app.
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