TrackIt – Cloud Consulting & S/W Development
  • Home
  • Solutions
    • M&EMedia & Entertainment
    • HPCHigh 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
      • 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 cloud Cloud Computing Cognito consul cost optimization Data Storage dedicated DevOps docker Dynamodb ec2 ESXi github hashicorp high availability IP json Marketing Media nomad open source packer pfSense Postgres public cloud reduce cost Serverless Solution Architect as a Service terraform trackit tutorial Video VM vmware windows

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).

$> ssh ubuntu@[public dns] -i [key pair]

Which gives you

$> 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

$> 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.

$> sudo usermod -a -G docker ubuntu

 

Preparing the instance to host TrackIt

Git clone

First, clone the TrackIt repository by typing:

$> git clone https://github.com/trackit/trackit.git
$> 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.

$> export TRACKIT_HOST=[ip]

Which gives you:

$> 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.

$> ./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 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

4 Replies to “Installing TrackIt on AWS EC2 step by step”

  1. odżywki na masę says:
    January 6, 2021 at 7:05 pm

    Bardzo podoba mi się twoja strona. Jeżeli chcesz się lepiej ze mną poznać i potrzebujesz odżywek lub suplementów diety na masę sprawdź mój blog!

    Reply
  2. sildenafil prices says:
    January 7, 2021 at 2:54 am

    I happen to be writing to make you understand what a terrific experience our princess went through visiting yuor web blog. She realized such a lot of things, with the inclusion of what it is like to possess an incredible teaching style to make the others without hassle thoroughly grasp various tricky topics. You undoubtedly surpassed visitors’ expected results. Thanks for showing those valuable, trustworthy, revealing not to mention unique tips on your topic to Sandra.

    Reply
  3. nortriptyline without a prescription says:
    January 8, 2021 at 4:12 pm

    I precisely desired to say thanks again. I’m not certain the things I could possibly have accomplished in the absence of the aspects contributed by you about my area. Certainly was a alarming case for me, but being able to see a expert approach you dealt with it forced me to cry for contentment. Extremely grateful for the advice and believe you are aware of a powerful job that you’re accomplishing educating many others all through a blog. I’m certain you’ve never come across all of us.

    Reply
  4. sinequan buy says:
    January 10, 2021 at 4:42 am

    I precisely had to appreciate you all over again. I’m not certain the things I might have done in the absence of the actual hints discussed by you concerning such field. It actually was a real difficult condition for me personally, but discovering a new professional fashion you handled it forced me to jump for delight. I’m just happier for the guidance and as well , have high hopes you comprehend what a powerful job you’re carrying out instructing most people through your blog. I am sure you’ve never encountered all of us.

    Reply

Leave a Reply Cancel Reply

Your email address will not be published. Required fields are marked *

*
*

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
  • @TrackIt 2020