TrackIt – Cloud Consulting & S/W Development
  • Home
  • Solutions
    • Media & EntertainmentMedia & Entertainment
    • HPC – High Performance ComputingHigh Performance Computing
    • DevOpsDevOps, AWS Cloud Consulting
    • StorageData Storage
    • S/W DevSoftware Development; Serverless, CI/CD, UI/UX, API Integration
    • AWS Programs
      • AWS Well-Architected Framework
      • Media2Cloud Video AI/ML
      • Chime SDK
      • DevOps Guru
      • Amazon API Gateway
  • Services
  • About Us
  • Resources
    • Blogs
    • White Papers
    • Case Studies
    • Press Releases
  • TrackIt App
    • Sign In

TrackIt Blogs

Read the latest cloud technology news and learn new tips and tricks to get the most out of your cloud.

  • Contact Us

Categories

Automation AWS data rooms Data Storage DevOps DevTools Monitoring Optimization Services TrackIt

Tags

ai ami API Aurora autoscaling aws AWS EC2 AWS S3 chargify Ci Cd Pipeline Circleci cloud Cloud Computing Cognito consul cost optimization dedicated DevOps docker Dynamodb ec2 ESXi github hashicorp high availability IP json Marketing nomad open source packer pfSense Postgres public cloud reduce cost Serverless terraform trackit tutorial Video VM vmware windows Windows Containers

Oct. 30, 2017

—

Installing TrackIt on AWS EC2 step-by-step

Contents

  • 1 Configuring an AWS EC2 Instance
    • 1.1 AMI
    • 1.2 Instance Type
    • 1.3 Instance Details
    • 1.4 Storage
    • 1.5 Tags
    • 1.6 Security Group
    • 1.7 Instance Summary
    • 1.8 Key Pair
  • 2 Installation Requirements
    • 2.1 SSH
    • 2.2 Docker
  • 3 Preparing the instance to host TrackIt
    • 3.1 Git clone
    • 3.2 Host
    • 3.3 Run
  • 4 How to use TrackIt
    • 4.1 Login
    • 4.2 New Key
    • 4.3 Enjoy!

NOTE: This article will assume you are familiar with AWS and EC2. If not, check the AWS EC2 documentation before continuing.

At the end of this article, you will have an AWS EC2 instance started with TrackIt installed, and you will be able to monitor and optimize your cloud yourself.

TIP: You can use TrackIt without any installation by using our infrastructure. Check our website on https://trackit.io.


Configuring an AWS EC2 Instance

In this section you will set up and start an instance on AWS EC2. This instance will have the recommended requirement for TrackIt. I recommend you check the EC2 pricing on the AWS website before launching an instance.

First, you need to know which region is the best for you by comparing the pricing and the latency of each one.

Once you have chosen your designated region, let’s go on the EC2 console and let’s click on Launch Instance.

AMI

Once you click on Launch Instance, it will display a panel as below.

We recommend using  Ubuntu 16.04 LTS, you can search for it in the AWS Marketplace (on the left side). Once you have found it, click on the Select button.

WARNING: A panel should open with the pricing per hour. We are going to use a t2.medium instance. Take note on the price that it will cost per month.

Instance Type

Select the instance type as above and click on Next.

Instance Details

It’s recommended to leave the default fields.

TIP: Select Protect against accidental termination if you want avoid an accidental complete remove of your instance and its data.

Storage

The SSD Storage is highly recommended. The size is fully proportional to your bills and your AWS consumption since TrackIt will download, process, and store your billing files.

Set the size to a minimum of 32GB. We calculated that an account spending $300,000 a month in AWS takes around 50GB more. If you want to be serene, set the size to 64GB as above.

Tags

As any AWS resource, you can add tags to your instance. You should use the tag functionality, however it’s not mandatory.

TIP: TrackIt actively uses the tag functionality to monitor the costs.

Security Group

As shown in the picture, you have to open the SSH (22) and HTTP (80) protocol to use TrackIt.

1. Select Create a new security group
2. Change its name and its description
3. Click on Add Rule
4. Select HTTP in the type field
5. Click on Next

Instance Summary

You should see a summary of all the settings applied before. Compare it to the picture above to make  sure everything is correct.

If it is, click on Launch Instance.

Key Pair

If you aren’t familiar with the key pairs of AWS, follow exactly the instructions below.

1. Select Create a new key pair
2. Type a name, for example trackit-ec2-key-pair
3. Download it by clicking on Download Key Pair and save it somewhere safe
4. Click on Launch Instances

Installation Requirements

In this section you will install the requirements for TrackIt directly from the instance with SSH. Afterwards, you will be able to properly install TrackIt.

SSH

The key pairs you previously created are essential for this step.  Indeed, we are going to connect to the EC2 instance. You have to get its Public DNS in the EC2 Console (see above).


gt; ssh ubuntu@[public dns] -i [key pair]
Which gives you


gt; ssh ubuntu@ec2-51-46-22-22.us-west-2.compute.amazonaws.com -i ~/Downloads/trackit-ec2-key-pair.pem
TIP: The key pair must be with the 400 permission. To set it, just type


gt; chmod 400 [key pair]

Docker

Docker is absolutely essential to make TrackIt work.

Follow the instructions to install Docker-CE (https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/) then Docker-Compose (https://docs.docker.com/compose/install/)

After this, run the command below to gain  the permissions to use Docker.


gt; sudo usermod -a -G docker ubuntu

Preparing the instance to host TrackIt

Git clone

First, clone the TrackIt repository by typing:


gt; git clone https://github.com/trackit/trackit.git


gt; cd trackit

Host

Since you are on a headless machine, you have to set the environment variable TRACKIT_HOST indicating  what  IP TrackIt should use to run.


gt; export TRACKIT_HOST=[ip]
Which gives you:


gt; export TRACKIT_HOST=51.46.22.22
IP is shown in the EC2 Console beside Public DNS.

Run

To start TrackIt, just execute the run.sh script in the repository.


gt; ./run.sh
It will pull the images of TrackIt from Docker Hub to run it afterward.

How to use TrackIt

Login

If you go on http://[ip], for example http://51.46.22.22, it will display the login page. The default credentials are:

username: admin
password admin

New Key

The login page will redirect you to the page where you will be able to add a new key to TrackIt.

Let’s fill the information as below.

And click on Submit. If you don’t know to what information corresponds to the fields, you should check here https://trackit.io/#/app/setupguide

Enjoy!

Here we go! TrackIt is successfully installed in your AWS EC2 instance! Once a key is added, it will be red during the time TrackIt  loads it.

The key is loaded after a few seconds, you can use TrackIt!

TIP: I highly recommend you to check https://blog.trackit.io/how-to-leverage-trackit-to-get-better-understanding-of-your-cloud-deployment/, which allows you to get better understanding of TrackIt and your cloud!

Previous Next

AWS Advanced Consulting Partner - Cloud Management, Consulting, and Software Development Solutions

Quick links

    • Home
    • Blog
    • About Us
    • Services
    • Trackit App

App

    • Log in to TrackIt
    • How to get started

get in touch

    • Phone: +1 323-230-0042
    • Email: info@trackit.io

    • Los Angeles, CA
  • @TrackIt 2021