Proxmox VM migration to aws

I have two vm in proxmox one host spring boot application and the other mysql database
I want to migrate the two vm to aws but I don’t know how, can you give me guide how to do it.
Thanks in advance

Welcome to the forum!

Why would you want to do that? The cloud is horrible and your costs will likely be much higher. Anyway, AWS recommends you run your database on their RDS instances (it’s cheaper than hosting an ec2 instance) so all you’d need to do is dump your main DB, create the users in the RDS mysql instance and import the dump to it.

For spring boot, it should be easier, just deploy the same OS (or similar) to what you’re self-hosting, install spring boot there and grab your data from the on-prem and send it to the ec2 instance. Then inside ec2, point the configuration for the DB to the RDS instance, instead of the self-hosted one.

Again, highly advise against that. It’s cheaper in the long run to host it on commodity hardware, even with high availability, compared to the expensive AWS stuff. At best, you might need a VPS front-end if your program is open to the internet, but that’s about it (you’d have the front-end only serve as a reverse-proxy to spring boot) and you’re going to have more freedom.