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.

Auth resource stopped working with notifications/analytics. Stuck on `resource auth/...`

See original GitHub issue

I’ve run into this as well for the past few weeks when deploying from our dev branch to our test branch for deployment to our test env.

Stuck at the exact same spot, Build resource auth/… Then times out after 30 minutes.

Using the CLI amplify push works fine.

I thought I had it sorted last week by doing the following…

  1. amplify notifications remove (removed our APNS setup)
  2. amplify analytics remove
  3. amplify push
  4. amplify notifications remove (just for good measure to remove the pinpoint application if it’s still there)
  5. check the web console and ensure that there is no application listed for the env (in our case test) in the Pinpoint service.
  6. amplify analytics add
  7. amplify push (important step to get the Pinpoint application setup in AWS).
  8. amplify notifications add

At this point checking Pinpoint on the web console should show only 1 entry for the environment (if step 7 wasn’t done there would end up being two).

After I did this, things were working, last week. However when I did a merge to our test branch tonight, the problem came back. Steps I took to merge :

  1. git checkout test
  2. amplify env checkout test
  3. git merge main (resolve conflicts and always choose the settings that were in the test branch before the merge for the amplify json files that come up as conflicts).
  4. amplify env checkout test
  5. git commit
  6. git push

This kicks off the CI/CD but somehow the Pinpoint bug is back. I confirmed that amplify/backend/analytics/myapp/parameters.json is the same as what it was when it last worked.

I just tried my fix from above and unfortunately it is not working this time.

Amplify cli version 10.3.0

Looking for help here as well.

_Originally posted by @Etep15 in https://github.com/aws-amplify/amplify-hosting/issues/2541#issuecomment-1284931327_

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ykethancommented, Oct 25, 2022

Hey @Etep15, thank you for reaching. The Amplify CLI team are investigating and are working on a resolution for this behaviour. We do not have a timeline on when the fix will be released. The Amplify CLI release page will be updated with the information. Please refer to https://github.com/aws-amplify/amplify-cli/releases for any updates.

1reaction
gspeichercommented, Oct 21, 2022

It also seems that it is always asking for the notification config now after doing an amplify push in an environment (such as test) and then doing git checkout and then an amplify env checkout to my dev branch. Which is getting to be a bit burdensome. This appears to have happened with the latest release of amplify cli 10.3.0.

This part is happening to me but have not seen it mess with the actual deployed resources (so far at least). Amplify CLI 10.3.0 will not remember the APNs/FCM/Email settings and re-prompts for them every time I do amplify env checkout or amplify pull. This started happening immediately upon upgrade to 10.3.0 and did not require a push to trigger the behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backend build not working(timed out) · Issue #2541 - GitHub
Auth resource stopped working with notifications/analytics. Stuck on resource auth/... aws-amplify/amplify-cli#11238.
Read more >
Amplify: How to remove Auth and add new Auth resource with ...
In amplify, I have added Api and a Auth (AWS Cognito) resources as follows. The Api is configured to use Auth Cognito User...
Read more >
The pcs host auth command hangs or times out in a ...
Issue. The pcs host auth command hangs or times out when creating a cluster when Centrify ( centrifydc ) is running.
Read more >
Creating instance resources hangs the installation - IBM
This example scenario involves a hang while creating the DB2 instance and cluster services resources as part of the installation process.
Read more >
pcs - pacemaker/corosync configuration system
[--wait[=n]] Attempt to stop the resources if they are running and forbid the ... Example: pcs resource utilization TestResource cpu= ram=20 cluster auth...
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