Deploy on AWS EC2 instances

In this section, we introduce how to set up Dotshake in an AWS EC2 instance environment.

Setup AWS EC2 instance


Step 1: Sign up at Dotshake login page

Signup

Step 2: Login with your AWS account.

If you do not have an AWS account yet, please create one first.

Step3: Launch EC2 instance

From the AWS console search window, type EC2.

Image

Click on Launch Instance listed on the EC2 dashboard.

Image

Select 64-bit (x86) UbuntuServer22.04LTS as the machine image.

Image

Either instance type perfectly works in this demo. (we use free tier)

Image

Create a key pair. Later, we will access the instance via SSH connection and proceed with the configuration.

Image

In the network settings, check the box Allow SSH traffic. Then, click Launch Instance to launch the instance.

Image

Step 4: Log in to the created EC2 instance and run the setup.

Select the instance created in Step2 and click Connect. Make sure you select the correct connection method and log in.

Image

After connecting the instance, run the following commands.

ubuntu@ip-172-31-4-54:~$ curl -L https://pkgs.dotshake.com/debian/start.sh | sh

Once the package is installed, you will see the login URL on the terminal.

The message Successful login will be displayed if the login is successful.

Your dotshake ip => [100.72.93.185/16]
Successful login
2022-09-23T16:23:14.636+0900    info    dotshaker up    launched dotshaker daemon.

Check to see if Dotshake is up and running correctly.

sudo systemctl status dotshaker.service

The following message ensures the Dotshake is working properly.

● dotshaker.service - dotshaker daemon
     Loaded: loaded (/etc/systemd/system/dotshaker.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-09-23 09:49:46 JST; 6h ago
   Main PID: 175492 (dotshaker)
      Tasks: 22 (limit: 76989)
     Memory: 8.1M
     CGroup: /system.slice/dotshaker.service
             └─175492 /usr/bin/dotshaker up -daemon=false

Step 5: Check the status

Get the IP address on the other machine and confirm if both are connected.

ping <dotshake ip>