If you are using the Amplify CLI, an existing Amazon Cognito User Pool and Identity Pool can be used with the Amplify Libraries by running: ```bash amplify import auth ``` For more details, see how to [Use an existing Cognito User Pool and Identity Pool](/cli/auth/import). import nativeCommon0 from "/src/fragments/lib-v1/auth/native_common/existing_resources/common.mdx"; import flutter from "/src/fragments/lib-v1/auth/flutter/existing_resources/10_existingResources.mdx"; - **CredentialsProvider**: - **Cognito Identity**: - **Default**: - **PoolID**: ID of the Amazon Cognito Identity Pool (e.g. `us-east-1:123e4567-e89b-12d3-a456-426614174000`) - **Region**: AWS Region where the resources are provisioned (e.g. `us-east-1`) - **CognitoUserPool**: - **Default**: - **PoolId**: ID of the Amazon Cognito User Pool (e.g. `us-east-1_abcdefghi`) - **AppClientId**: ID for the client used to authenticate against the user pool - **Region**: AWS Region where the resources are provisioned (e.g. `us-east-1`) - **Auth**: - **Default**: - **authenticationFlowType**: The authentication flow type, takes values `USER_SRP_AUTH`, `CUSTOM_AUTH`, and `USER_PASSWORD_AUTH`. Default is `USER_SRP_AUTH`. - **OAuth**: Hosted UI Configuration (only include this if using the Hosted UI flow) - **Scopes:** Scopes should match the scopes enables in Cognito under "App client settings" Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see [Install Amplify Libraries](/lib-v1/project-setup/create-application#n2-install-amplify-libraries). If you are using a Cognito User Pool without a Cognito Identity Pool, you can omit the **CredentialsProvider** section in the configuration.