Importing Existing Cognito Resources | Task

Ole Ersoy
Sep - 16  -  1 min

Scenario

We are redesigning an Angular Application from scratch and need to import existing Cognito resources into it.

Approach

This is the reference document.

First initialize amplify for the new project:

amplify init

Then run the import:

amplify import auth

Select the user and identiy pool from the list of options.

As the native client, we select the web client as we are using OAuth.

Run amplify push. The app is now using the existing Cognito identity pool for authentication.