Create EC2 instance in asia (Seoul)

Launch Instance button

Name as FreqTrade Web Server

Create new key pair (kimchiking-seoul). RSA and .pem. Click Create key pair button

Launch Instance to create new EC2 instance

Use the pem file to SSH into the server
chmod 400 kimchiking-seoul.pem
ssh -i kimchiking-seoul.pem [email protected]
Install git and docker on the EC2 instance (may need to log back in from kali-linux). Start docker after it’s installed.
sudo yum update -y
sudo yum install git -y
sudo yum install docker -y
sudo systemctl start docker
Get project from github
sudo bash
git clone <https://github.com/nispoe/seas-8414.git>
cd /home/ec2-user/seas-8414/week-1/application
source .setup
download-history.sh
backtest-strategy.sh Elmo
Docker compose setup and startup docker
sudo curl -L <https://github.com/docker/compose/releases/latest/download/docker-compose-$>(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
/usr/local/bin/docker-compose version
mv /usr/local/bin/docker-compose /usr/bin/docker-compose
make start
docker ps
make logs
In AWS for the EC2 instance that was created navigate to the Security tab and select the Security group link

Click the Edit inbound rules button

Click the Add rule button and then add a TCP rule for port 8030. Click the Save rules button.

Open browser and navigate to the EC2 instance public url (http://43.201.9.58:8030)

Login and create a Bot Elmo, user is trader and password is Seas8414

Take logs from docker and forward them into /var/log/Emo.log
sudo bash
cd /home/ec2-user/seas-8414/week-1/application
make logs | tee -a /var/log/Elmo.log