Exporting an Amazon Lightsail instance to Amazon EC2
In our earlier blog, we explained some of the key differences between Amazon Lightsail and EC2. Many of our customers decided to embark on the Lightsail track for hosting their applications since it was easy to setup and use and naturally the perfect choice. Some of our customers came across some requirements which dictated specialized networking, complex workload resource requirements and auto scaling. In order to satisfy these special requirements, we decided to migrate our customer applications to EC2.
On 28th November 2018, Amazon introduced this feature officially using which one can export Lightsail based instances and volumes to EC2 with a simple, guided experience. This feature enables organizations to grow applications and scale cloud deployments by utilizing full feature set of EC2. High level steps involve taking a snapshot of the Lightsail instance, export snapshot to EC2, setup EC2 instance directly or use upgrade to EC2 wizard in Lightsail console to get the new EC2 instance up and running.
In this blog we will provide step by step instructions on how to migrate a Lightsail based instance to EC2. In this blog, we will migrate a WordPress Lightsail based application to EC2.
1. Amazon AWS account
2. A deployed Lightsail application
Here is a step-by-step guide to export your Lightsail instance to Amazon EC2.
1. Our WordPress site is fully setup and ready to be exported. Here is a screenshot of a blog that we will reference later.
2. Open Amazon Lightsail console using this link.
3. Click on the options next to the instance to export to EC2 and select manage.
4. Go to the Snapshots section and click on “Create Snapshot”.
5. On the successfully created snapshot click on the options and select “Export to Amazon EC2”.
6. Click on “Yes, continue” to export the snapshot to EC2.
7. Click on “Acknowledged”.
8. Monitor the progress of export to EC2 task from the task monitor.
9. After the export process has been successful, you will see something like this in the task monitor.
10. At this point, you can create an EC2 instance directly from here or you can also go to the Amazon EC2 console and create an instance from the AMI section of the console. For simplicity, we will use the first option and click on “Create a new Amazon EC2 instance”. This will open up a guided wizard for creation of an EC2 instance as shown below.
11. Configure the EC2 instance as required and select “Create resources in EC2” once all configuration is done.
12. Click on “Acknowledged”.
13. Monitor the progress of creating resources in EC2 task from the task monitor.
14. Once the resources in EC2 have been created successfully, you will see something like this in the task monitor.
15. Click on “Go to Amazon EC2” to go over to the EC2 console to check our newly created WordPress EC2 instance. This will open up a new tab.
16. We can see from the EC2 dashboard that the WordPress instance has been successfully created and is in the running state. Here we will copy and paste the public DNS of the EC2 instance in the browser and browse to our user post to verify if our settings and data are intact and exactly the same as of the Lightsail instance.
Following the above guide one can easily migrate Lightsail based applications to Amazon EC2 and leverage all the capability and features of EC2. We hope that this blog will help our customers as well as other users of Amazon Lightsail in the migration process to Amazon EC2.
Bluestack IT Solutions