3

When I am trying to do "amplify push" This error message shows in my ide console.

× An error occurred when pushing the resources to the cloud @auth directive with 'userPools' provider found, but the project has no Cognito User Pools authentication provider configured.

Can someone help me with this matter.

miken32
  • 42,008
  • 16
  • 111
  • 154
Lakshitha Samod
  • 383
  • 3
  • 10

1 Answers1

10

You need to run:

amplify update api

? Please select from one of the below mentioned services: GraphQL
? Select from the options below Walkthrough all configurations
? Choose the default authorization type for the API Amazon Cognito User Pool
Use a Cognito user pool configured as a part of this project.
? Do you want to configure advanced settings for the GraphQL API No, I am done.

Then run:

amplify push
live-love
  • 48,840
  • 22
  • 240
  • 204
  • This should be the accepted answer. It is very easy to think the answer is in `amplify auth update` given the nature of the query. This worked perfectly for me - thanks! – TimMutlow Nov 15 '21 at 23:10
  • This answer is no longer correct for me: I got ? Select a setting to edit ? Choose the default authorization type for the API – TheArchitecta Jul 12 '23 at 14:35