I have a running Amazon Lightsail instance, but I want to start a fresh install of the same instance with the same static IP address.
Short description
To start a clean version of the server image on the existing instance, manually clean up the installations and data on the server. Or, launch a new Lightsail instance from the same Lightsail blueprint of your instance. Then, attach the previous instance's static IP address to the new instance.
Resolution
Complete the following steps to launch a new Lightsail instance and attach the previous instance's static IP address:
- Open the Amazon Lightsail console.
- Choose Create instance.
- Select the same platform as the existing instance, and then select the same blueprint as the existing instance.
- (Optional) Change the SSH key pair.
- Select the Lightsail instance plan.
- Name your new Lightsail instance, and then choose Create Instance.
- Return to the Lightsail home page, and then select the original instance.
- On the Networking tab, locate the static IP address.
- Choose the menu icon (⋮), and then choose Manage, Detach.
- On the confirmation screen, choose Yes, detach.
- In the Attach to an instance option, select the name of the new Lightsail instance, and then choose Attach.
Note: You can attach static IP addresses to instances only in the same AWS Region as the original instance.
Related information
Create a static IP address and attach it to a Lightsail instance