Search code examples
swiftamazon-web-servicesamazon-cognitoaws-amplify

Integrate existing AWS Cognito user pool into iOS project with Amplify


I am trying to add AWS Cognito to my iOS application using AWS Amplify. The docs suggest to use amplify add auth on the CLI, but this does not seem to work with an existing User Pool (i.e. you have to create a new one). Is it possible to integrate AWS Cognito into my iOS (Swift) project using an existing User Pool?


Solution

  • Update: Since 2020 Amplify allows you to use existing User Pools (yeah!). Just run:

    amplify import auth

    Source: https://aws.amazon.com/de/about-aws/whats-new/2020/10/use-existing-cognito-user-pools-identity-pools-for-amplify-project/