Create virtual Node on EC2 with Data Simulator
This guide walks you through all the required steps to register a virtual node on EC2 and deploy an edge application with simulated input data.
If you don't have any edge hardware or a Raspberry Pi at hand, you can of course also use any cloud computing service like AWS EC2 or Linode to set up what we call a "virtual" node.
On this node, you can deploy the same applications as you would on real edge computing hardware, however, of course, the input requirements might be different since you wouldn't have any real sensors connected.
For testing and trial purposes, weeve has a data simulation module in the portfolio that let's you explore all capabilities of the platform without the need to onboard and connect to real sensor data and hardware.

Create a new EC2 Instance

For this guide, we will work with AWS EC2, but you can of course use any other provider of your preference.
Log in to your AWS account and navigate to the EC2 Management Console. Find and click "Launch Instance" on this page.
Launch an EC2 Instance set up
Give your instance a unique name, select the OS you want to run on your instance (we go with Debian for now), and select your instance type (t2.micro should do the job for most cases), select or create a new key pair (this will be needed later to SSH into the instance), make sure SSH traffic is ticked and you are good to go!

Connect to instance

  1. 1.
    Open an SSH client (Terminal e.g.)
  2. 2.
    Locate your private key file (xxxx.pem)
  3. 3.
    Run this command, if necessary, to ensure your key is not publicly viewable.
$ chmod 400 'add the path to xxxx.pem'
4. Connect to your instance using its Public DNS. You will find this address on the instance page.
Instance overview page
Example:
$ ssh -i "xxxx.pem" [email protected]
You can also find a detailed guide by selecting "Connect" from the top menu of your instance page.

Install Docker Engine

After successfully connecting to the instance via SSH, we first need to install the Docker to make weeve work on this instance. You can follow this guide to do so:
Install Docker Engine on Debian
Docker Documentation
Run this command to make sure that docker is installed successfully:
$ sudo docker run hello-world

Register Node to weeve Manager and install weeve Agent

Now, everything is set up to register this instance as a node to your Workspace and install the weeve Agent on it. You can follow the steps in this video. Even though we show how you would do it on a Raspberry Pi, the steps are similar. However, in the case of copying the configuration to the instance, we would recommend creating a new file instead (sudo nano agent-config.json) on the instance and copying the content of the agent-config.json file rather than moving it with "scp". But this is up to you!
How to add a Node?
After running the installer, your EC2 Instance should show up as "Connected" in the list of Nodes in the weeve Manager:
List of Nodes

Create Edge Application with Data Simulator

(Comming soon...)