Skip to content

Migrating S3, Cognito, Dynamo DB from one Amplify Gen1 App to Another

0

Hello. We have an old amplify app, let's call it oldApp, and a new Amplify app, let's call it newApp.

Amplify Gen1, React app with Gen1 backend.

newApp is working great except it needs to function with the data from the services of those old apps. We think this should be a simple import of a few parameters and we're off to deployment, but it's not working that way. We want all the new app's logic but with S3, DynamoDB, and Cognito of the old app to preserve data, and so that we can test with live data before we blue/green the dns over to the new app.

We have tried so many things:

  • Amplify import (failed due to circular dependencies created by amplify CLI)
  • Update team-provider.json --> failed due to a ton of obscure issues related to Amplify's complex layers of abstraction
  • Tried manually updating the SSM parameters but this only helped with a few small things

So how do you redirect your amplify app to an old S3, Dynamo, and Cognito pool without breaking either one? Is this something that's possible to do or do I need to be looking at migration of the data and replication?

1 Answer
0

Hello,

I understand you want your new Amplify app to use existing resources (S3, DynamoDB, and Cognito) from your old app while maintaining separate applications. Here's how you can connect your new app to existing resources:

  1. For Cognito resources:

    amplify import auth
    

    This will prompt you to select the existing Cognito User Pool and Identity Pool from your old application.

  2. For Storage resources:

    amplify import storage

    This will allow you to select either your existing S3 bucket or DynamoDB table.

These commands will enable your new Amplify application "newApp" to use the resources from your old application "oldApp " while maintaining them as separate apps.

For more detailed information, refer to:

answered a year ago
  • That doesn't really answer my question though.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.