Skip to main content

Create Virtual Machine

Sure! Let’s make your EC2 and name it finmars-platform-vm. Follow these steps:

  1. Sign in to AWS
  2. Open EC2
    • At the top, click the search box and type EC2.
    • Click EC2 under “Services.”
  3. Launch a new instance
    • Click the blue Launch instances button.
  4. Name your instance
    • In the Name tag box, type finmars-platform-vm.
  5. Choose AMI (Ubuntu 24.04)
    • Scroll or search for Ubuntu Server 24.04 LTS.
    • Click Select.
  6. Select instance type (4 vCPU, 16 GiB RAM)
    • Find and click t3.xlarge (it has 4 vCPU and 16 GiB).
  7. Create or select key pair
    • Choose Create a new key pair.
    • Name it (e.g. finmars-platform-vm-key).
    • Click Download Key Pair and save the .pem file safely. - Do not Lose this file, if you lose it, you will not able to connect to your VM again
    • Click Launch Instances.
  8. Configure instance details
    • Under Subnet, pick one (any is fine).
    • Turn Auto-assign Public IP to Enable.
    • Leave the rest as default.
    • Click Next: Add Storage.
  9. Add storage (256 GiB)
    • Change the size from 8 to 256 in the root volume row.
    • Keep the volume type as gp3 or gp2.
    • Click Next: Add Tags.
  10. Add tags (optional)
    • You can skip or add tags like Key=Owner, Value=YourName.
    • Click Next: Configure Security Group.
  11. Set up security group
    • Choose Create a new security group.
    • Name it web-sg.
    • Add these inbound rules:
      • SSH: Port 22, Source 0.0.0.0/0
      • HTTP: Port 80, Source 0.0.0.0/0
      • HTTPS: Port 443, Source 0.0.0.0/0
    • Click Review and Launch.
  12. Review and launch
    • Check all your settings.
    • Click Launch.
  13. Wait for your VM
    • Click View Instances.
    • Wait until its status is running and checks pass.
  14. Connect to your VM
    • Select the instance named finmars-platform-vm.
    • Click Connect.
    • Follow the instructions, for example:
      ssh -i /path/to/finmars-key.pem ubuntu@<Public-IP>

Your EC2 named finmars-platform-vm is ready! 🎉



Now you need to assign your Public IP of your freshly created VM to subdomain of your domain.

  1. Sign in to AWS
    Go to console.aws.amazon.com and log in.
  2. Open Route 53
    In the top search bar, type Route 53, then click the service.
  3. Go to Hosted Zones
    In the left menu, click “Hosted zones.”
  4. Select your domain
    Find and click the zone named your_domain.tld (for example, example.com).
  5. Create the first record
    • Click “Create record.”
    • In Record name, type finmars (so full name is finmars.example.com).
    • For Record type, choose A – IPv4 address.
    • In Value, type your EC2 public IP (for example, 203.0.113.25).
    • Leave TTL as default (300).
    • Click “Create records.”
  6. Create the second record
    • Click “Create record” again.
    • In Record name, type finmars-auth.
    • For Record type, choose A – IPv4 address.
    • In Value, type the same EC2 public IP.
    • Click “Create records.”
  7. Wait a few minutes
    DNS needs a little time to spread out. After about 5 minutes, both
    • finmars.example.com
    • finmars-auth.example.com
      will go to your VM’s public IP.

That’s it! Now both sub-domains point to your finmars-platform-vm server.