#✅ - Getting Error While Pushing Amplify Analytics

12 messages · Page 1 of 1 (latest)

sand condor
#

Here are the steps:

  1. I created a new amplify project (amplify init)
  2. On the console, I created a new Identitiy Pool & User Pool and connected the User Pool as an Identitiy Provider
  3. On the studio, I connected them to my amplify project in the Authentication section
  4. Pulled the environment to my local

Everything works perfectly so far.

  1. Now, amplify add analytics and then amplify push --y shows this error.

Why is that?

sand condor
#

appnameAuthRule
appnameGuestRule

so nothing specific, or against the rules on that

cinder sage
devout osprey
#

@sand condor, if you're importing Auth resources... you might be hitting the following known issue on the CLI:
https://github.com/aws-amplify/amplify-cli/issues/13240

If so, definitely add a comment and upvote on the GH issue to help it gain traction until there's a fix!

GitHub

How did you install the Amplify CLI? pnpm If applicable, what version of Node.js are you using? 20.x Amplify CLI Version 12.4.0 What operating system are you using? mac Did you make any manual chan...

#

I'll see if there's a workaround in the mean time with the CLI team.

uncut trout
#

The workaround would be to use Amplify CLI/studio to create the user and identity pool.

sand condor
uncut trout
#

@sand condor i understand, as previously stated is UnauthenticatedIdentities enabled on your auth resource?

sand condor
#

Yes it is. It throws a different error when it's not enabled that clearly states that i need to activate both guest/auth access etc.

uncut trout
vital scarabBOT
#

✅ - Getting Error While Pushing Amplify Analytics