BYOVM with AWS EC2
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:
https://console.aws.amazon.com/ec2/v2/home#Instances:instanceState=running
There click on "Launch instances" button and click on the select button on the row with Ubuntu 2020.04 LTS
ScrollNext downChoose toan Instance type to select your VM size based on your needs (T3 Medium is a good base if you don't know yet what you will need)
thenThen scrollclick downon toNEXT (configure networkinstance settingsdetails) and storagebutton
InThere network settings you should check the 3 checkboxesnothing to allowdo, SSH,just HTTPclick andon HTTPS"Next: trafficadd fromstorage" internetbutton
In Storage, you can indicate any disk size above 20GB
If you need to provision multiple VMs you can change the nuber of instances in the top right column
Finally click on Launch instance button
If it's your first time deploying a VM you will be asked to create a new key pair
give any key pair name then click on "Create key pair" and SAVE the PEM file preciously on your computer
After few seconds you 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
We also need to allow all traffic to the VM in the AWS EC2 instance list click on your instance, then click on the security tab
There click on the Security group in blue (launch-wizard-1 in the screenshot above)
Click on "Edit inbound rules" to be able to allow all traffic on the VM
Here change the rule to allow ALL TCP traffic & ALL UDP traffic from anywhere
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 template you have selected, you can find them in the activation email of the software or in our documentation here.
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.