aws-amplify / aws-amplify/docs
Gen2: Connect User Pool, Import Project
- Dominant language
- MDX
- Stars
- 506
- Forks
- 1.1k
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 1
Description
**Describe the content issue**:
I'm Using Amplify Gen2 with my project in angular v17. I build my amplify folder structure using:
`npm create amplify@latest`
and the project was created, but there is not enouph documentation for these cases:
**1. If I create a User Pool using Amplify defineAuth**
`export const auth = defineAuth({
loginWith: {
email: true,
},
groups: ["masters", "admins","users"],
triggers:{
createAuthChallenge: createAuthChallenge,
defineAuthChallenge: defineAuthChallenge,
verifyAuthChallengeResponse: verifyAuthChallenge
}
});`
**How can I deploy the resource in production?
How to keep resources and use them later? (example I want to keep my user pool for sandbox or for production)**
I'm having this issue always:
`auth.service.ts:166 [ERROR] 06:51.553 AuthError -
Error: Amplify has not been configured correctly.
The configuration object is missing required auth properties.
This error is typically caused by one of the following scenarios:
1. Did you run `amplify push` after adding auth via `amplify add auth`?
See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information
3. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
auth.page.ts:144 error de autenticación {"name":"NoUserPoolError","log":"\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties.\n This error is typically caused by one of the following scenarios:\n\n 1. Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n "}`
but I cannot run amplify push as it says that there is no backend
**2. What If I want to import an existing UserPool?**
With Gen1 I I used `amplify import auth`
But now with Gen2 there is no documentation
**4. What If I want to import an existing project?**
With Gen1 I I used `amplify init --appId xxxx`
But now with Gen2 there is no documentation
**URL page where content issue is**:
https://docs.amplify.aws/angular/build-a-backend/auth/
https://docs.amplify.aws/angular/start/manual-installation/
https://docs.amplify.aws/angular/reference/cli-commands/
Contributor guide
Assessment
This issue has not been assessed yet.