Giter Club home page Giter Club logo

playground_evedata_aws_cdk's Introduction

playground-evedata-aws-cdk

after watching aws cdk intro i was really interested in cdk...

this repo contains my first run with aws-cdk to create a simple infrastructure stack.

cdk stack will create:

  • one ec2 instance to compute eve online market data (no-source)
  • mysql rds instance for static data (eve online sde)
  • elasticsearch to store and present market orders and trade posibilities

initialise the first and empty stack:

npm install -g aws-cdk
cdk --version
mkdir playground-evedata-aws-cdk
cd playground-evedata-aws-cdk/
cdk init
cdk init --language=python app
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt

deploy stack

cdk deploy

files to look at:

planning and open todos:

ec2:

  • public instance, ssh key is used
  • internals ip from ec2 will be whitelisted on mysql and elasticsearch

mysql:

  • rds mysql, very simple deployment, reachable only from ec2 only

elasticsearch:

  • elasticsearchdomain with kibana
  • reachable from ec2
  • reachable from my current public ip
    • can i add parameters into cdk deploy to specify my ip?

notes:

  • default vpc
  • evedata source will not exposed in this repo

open todos:

  • lookup data from:
    • existing aws services
      • vpcips = names, ids
      • ec2 instances = internal and external ip

example run of trade calculation:

[..]
url https://esi.evetech.net/v1/markets/10000002/orders/
x-pages: 314
len: 1236539
(1236539, [])

real	2m54.261s
user	1m2.416s
sys	0m3.274s


(.env) [root@ip-10-0-14-204 evedata]# time python3 trades_jita_buy.py
delete index
create index
(9304, [])
run over orders: 1236539
trades for db 9304
skip counter 1227235

real	8m22.153s
user	2m19.178s
sys	0m12.260s

playground_evedata_aws_cdk's People

Contributors

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