GithubHelp home page GithubHelp logo

zhouzilong2020 / ec2instances.info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vantage-sh/ec2instances.info

0.0 1.0 0.0 68.44 MB

Amazon EC2 instance comparison site

Home Page: https://ec2instances.info

License: MIT License

Mako 0.19% Python 0.29% CSS 0.01% JavaScript 0.08% HTML 99.42% Makefile 0.01% Dockerfile 0.01%

ec2instances.info's Introduction

EC2Instances.info

Vantage Picture

I was sick of comparing EC2 instance metrics and pricing on Amazon's site so I made EC2Instances.info.

EC2Instances.info was originally created by Garret Heaton, is now hosted by Vantage and developed by the community of contributors.

Project status

Vantage employees are actively maintaining and hosting the site with the help of contributors here. Improvements in the form of pull requests or ideas via issues are welcome!

People have suggested many neat ideas and feature requests by opening issues on this repository. We also have a Slack Community for anyone to join with a devoted channel named #instances-vantage.sh.

Running locally

First, you'll need to provide credentials so that boto can access the AWS API. Options for setting this up are described in the boto docs. Ensure that your IAM user has at least the following permissions:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "ec2:DescribeInstanceTypes",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "pricing:*",
            "Resource": "*"
        }
    ]
}

Running in Docker (recommended)

  1. Clone the repository, if not already done:

     git clone https://github.com/vantage-sh/ec2instances.info
     cd ec2instances.info
    
  2. Build a docker image:

     docker build -t ec2instances.info .
    
  3. Run a container from the built docker image:

     docker run -d --name some-container -p 8080:8080 ec2instances.info
    
  4. Open localhost:8080 in your browser to see it in action.

Detailed local build instructions

Note: These instructions are only kept here for reference, the Docker instructions mentioned above hide all these details and are recommended for local execution.

Make sure you have LibXML and Python development files. On Ubuntu, run sudo apt-get install python-dev libxml2-dev libxslt1-dev libssl-dev.

Then:

git clone https://github.com/vantage-sh/ec2instances.info
cd ec2instances.info/
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
invoke build
invoke serve
open http://localhost:8080
deactivate # to exit virtualenv

Requirements

API Access

The data backing EC2Instances.info has recently been made available via a free API. All you need to get started is a free API key. To get started with API access, check out the devoted API documentation.

Keep up-to-date

Feel free to watch/star this repo as we're looking to update the site regularly. Vantage also works on the following relevant projects:

ec2instances.info's People

Contributors

amiryal avatar anderiv avatar asgh avatar bdarfler avatar bensign avatar blckct avatar brookemckim avatar cristim avatar cwjohnston avatar darkorb avatar davideauee avatar delijati avatar derek9gag avatar doroncohen avatar fidian avatar grantlawton avatar jameswnl avatar jlintz avatar mikemead avatar nelhage avatar nelhage-stripe avatar opalmer avatar patmyron avatar powdahound avatar serpentblade avatar ssro avatar stefanor avatar tenzer avatar vszakats avatar x-guardian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.