Suppose I have a .tar.gz
file with a Linux filesystem.
How to create an AWS EC2 Compute Instance from this file?
Actually, I want to move a server from Lightsail to EC2. Maybe, instead use rsync or something? How?
See the article AWS Support article
How can I migrate a Windows Lightsail instance to an Amazon EC2 instance for troubleshooting purposes?
As the contents of the article might change in the future, here is just a rough summary of the steps:
Note: To export a Windows Lightsail instance to Amazon EC2 for reasons other than troubleshooting, see the article Creating a snapshot of your Windows Server instance in Amazon Lightsail. This advises to run Sysprep to create a snapshot with system-specific information removed from your instance.