Skip to main content


You can deploy an Elestio service on your own AWS account with BYOVM

To do it, you will need to create a VM on AWS EC2, first connect to AWS EC2 dashboard:


There click on "Launch instances" button and click on the select button on the row with Ubuntu 20.04 LTS 


Next Choose an Instance type based on your needs (T3 Medium is a good base if you don't know yet what you will need)


Then click on NEXT (configure instance details) button


There is nothing to do, just click on "Next: add storage" button


In the disk size configure at least 20GB then click on the Next button again, you will arrive on the Step 5 with tags, nothing to do there, click again on Next to go to security groups configuration


You need to create 2 rules in the security group to open the traffic from internet to the VM:

  • ALL TCP, for ports 0-65535, with source anywhere
  • Custom UDP, for port 4242, with source anywhere

Then click on "Review and Launch" button

Alternatively you can open just a selection of ports based on your needs, at least ports TCP: 22, 80, 443 for basic usage. To allow Elestio tools (File Explorer, VS Code, web terminal) you should also open ports TCP: 18345,18374,18445. If you want to use our global private ip network you should also allow port UDP: 4242. Finally some specific ports are required based on the app template you have selected, you can find them in the activation email of the software or in our documentation here.


Finally click on Launch, after few seconds will see a confirmation message:


There click on View all instances button


We recommend that you allocate & attach an Elastic IP address to your instance, so the IP address will never change in case you stop the server. Click here to allocate an Elastic IP and then attach it to your VM in EC2.

We are now back on the list of all VMs in EC2, from here right click on your new instance and click on Connect in the sub menu


There change the user name to root then click on Connect button


 You should then see a terminal shell like this


There paste this command into the terminal to activate the remote management for Elestio (This is a temporary key used for the deployment phase, it's automatically removed from the VM right after the deployment)

sudo mkdir -p /root/.ssh/ && sudo echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAmAlfBn8fy00sHq4DV2lUDNJ73XNwCtSDgHAAEjVt8lVcPOyb+drHK7TmHtF6mIhax/qeFdS/27bqmuu2/+QyXuvG98WL47cJinVkuUNR1bqKfpjwvlGtPkVQTiz2aN9ktY8+RaKoJUg6YrL23wiRgqibRuRYJgG1tIx7O4pUAK8XPsIVw2kvTuaVWu+iQq968KozJP8t1C6U8eqwbV2H8xpMLAsuIA82S1vGkqx42TBLo8XOgQo1ZIoY4dsO+ElvJZ5sqxAg4GB57OIgpaav/2SkKau6Oh4ndkKTJms5kTc2wUm96VVea2eOrOL0TPNQOhb1uy2MgxS9LLFxm2psmQ== elestio-prod-key" >> /root/.ssh/authorized_keys

Then go back to Elestio Dashboard to create a new BYOVM service


Indicate the provider name, region name and Public IPV4 found in the AWS dashboard then click on "Test my VM"


You'll see the pricing calculated based on the number of CPU/RAM/DISK of your AWS EC2 VM, the first BYOVM service is free!

You can then click on "Create service" and you are done! Your service will be deployed in less than 3 minutes and you will receive an email with instructions but of course the service is also accessible in the dashboard.


From there we will take care of backups, monitoring/alerts, OS/software updates and security for you.