Thanks for the reply @chinmaybhatk,
I have not any choice for AMI, so I went with second approach.
- installed open edX in XYZ network
- dumped and restored DB in XYZ network from AWS
- copied edx-platform from AWS server
- added relevant settings in json files
- restarted services
But when I started my server in debug mode got error like this:
django.db.migrations.exceptions.NodeNotFoundError: Migration my_app.0006_auto_20190720_0030 dependencies reference nonexistent parent node (u'auth', u'0009_auto_20190720_0030')
To resolve this I have to add 00009 migration from AWS server and applied migration.
0009 migration was on this path in AWS server
After changing 0009 migration file with AWS file makemigrations and migrate worked.
This was one miss, is there anything else I am missing?
Does anyone has done this before and faced issue like me?
Am I doing it in right way or not?