DEV Community

Cover image for APPLICATION MIGRATION
Nishita Mohanty
Nishita Mohanty

Posted on

APPLICATION MIGRATION

WHAT IS APPLICATION MIGRATION?
It is the process of moving data, applications, or other business components from an organization’s on-premises infrastructure to the cloud, or moving them from one cloud service to another cloud platform.

So how can we migrate our data or applications server from one AWS account of a particular region to another AWS account of same or some other region?

So this is the server (in place of on-premise I have used another AWS account)(application migration) in Mumbai region of one AWS account and we want to migrate it to the N.Virginia region of some other AWS account.
Image description

Connect the server through xshell and install apache.

Image description

Image description

Now we are required to host a website from our server which we want to migrate.

The below is the sample website (downloaded from free-css.com and sent to the server via WinScp) which we have hosted and connected it through the public IP of the server.
Image description

Now go the the AWS account where you want to migrate your data.
1st type application migration in the search bar and then select AWS application migration service.
Image description

Then click on add servers.
Image description

Then select your desired operating system. Here, we have chosen Linux.
Then select your replication preferences.
then create an IAM user and provide its access key and secret key.
Image description

Then copy the commands present in point 4 and 5 and then paste in Xshell (one by one) where your server is connected.
Image description
Image description
Then go back to the source server and the click on source server's name.
Image description
As we scroll down we can see the replication initiation steps.
Image description
Image description
Image description

Then go to launch settings and click modify (in EC2 launch template).
Image description
Give a template name.
Image description
Then give the instance type of your choice and select your security group (by doing necessary changes) .

Image description
Image description

Then configure storage to gp2.
Image description
Then add a new tag.
Image description
Then in advanced details click on the checkbox of enable IPv4.
Image description
Then go to launch templates and then select and set it as default version.
Image description
Image description
Image description

After the replication process will get over then an instance will launched in your desired AWS account where you wanted to migrate.
Image description
Image description
Image description
Image description
Image description

Then again select the source server and then click on launch test instance.
Image description
Image description
Image description
Then another instance will get launched and after it gets stopped then the real replication server will be launched which we have attach an elastic IP and then after opening its public IP in the browser we can get to see the that the website which we have deployed in the server of the AWS account from where we have migrated the data, is up and running here.
Image description
Image description
Image description
Image description

Then again select source server and then click on mark as ready for cutover.
Image description
Then launch cutover instance.
Image description
Image description
In the job log we can see the details of work done in the backend.
Image description
Then finalize cutover.
Image description
Image description
then mark as archived.
Image description
Then after that we can select the server's IP (attach an elastic IP) and can see the website is up and running.
Image description
Image description
This is the process by which we can migrate data from server of one AWS account to the server of another AWS account.

Top comments (0)