Skip to main content

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

image-1648551097629.png

There click on "Launch instances" button and select Ubuntu 20

image-1648551214266.png


Scroll down to Instance type to select your VM size based on your needs

image-1648551260900.png

then scroll down to configure network settings and storage

image-1648551341376.png

In network settings you should check the 3 checkboxes to allow SSH, HTTP and HTTPS traffic from internet

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

image-1648551520084.png

If it's your first time deploying a VM you will be asked to create a new key pair

image-1648551559491.png

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:

image-1648551657247.png

There click on View all instances button

image-1648551707674.png

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

image-1648551813396.png

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

image-1648551863875.png

 You should then see a terminal shell like this

image-1648551921125.png

There paste this command into the terminal to activate the remote management for Elestio

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 ho back to Elestio Dashboard to create a new BYOVM service

image-1648553680058.png

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

image-1648553849491.png

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.