Skip to content

Latest commit

 

History

History

build

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build

This project uses GitHub Actions for automated builds and deployments. Ready to tweak and test this webapp locally? Follow these instructions:

Requirements

Ready to tinker? For development, you'll need:

Debian/Ubuntu

Packages:

sudo apt update
sudo apt install \
	awscli \
	curl \
	jq \
	libdbd-sqlite3-perl \
	libjson-xs-perl \
	libplack-perl \
	libtemplate-perl \
	libtext-csv-perl \
	sqlite3
macOS

Homebrew packages:

brew install \
	awscli \
	cpanminus \
	curl \
	jq \
	perl \
	pkg-config \
	sqlite3

Perl modules:

cpanm --installdeps .

Create Database

sqlite3 ec2.db < create.sql

Locations

curl -O "https://b0.p.awsstatic.com/locations/1.0/aws/current/locations.json"
perl locations.pl < locations.json

IP Ranges

curl -O "https://ip-ranges.amazonaws.com/ip-ranges.json"
perl ip-ranges.pl < ip-ranges.json

Prices

# On-demand and reserved price
bash price-lists.sh
# Spot price
curl -O "https://website.spot.ec2.aws.a2z.com/spot.json"
perl spot.pl < spot.json

Instace Types (EC2)

We're gonna assume us-east-1 (N. Virginia) has all the available instance types.

aws ec2 describe-instance-types --region us-east-1 --output json > instance-types.json
perl instance-types.pl < instance-types.json

Storage Types (EBS)

We're gonna assume us-east-1 (N. Virginia) has all the available storage types.

sqlite3 ec2.db < storage-types.sql

SAP

Copy tables from AWS General SAP Guide and paste as unformatted text (Crtl+Shift+V)to LibreOffice Calc Spreadsheet:

Screenshot: LibreOffice Table Import

Export as CSV (sap.csv, sap-hana.csv):

Screenshot: LibreOffice CSV Export

Update database:

perl sap.pl
perl sap-hana.pl

Export

bash export.sh

Websites

perl web.pl

Run:

plackup --host "127.0.0.1" --port "8080"

Help