pplu / aws-map Goto Github PK
View Code? Open in Web Editor NEWMake a network graph of an AWS region
License: Other
Make a network graph of an AWS region
License: Other
Try to keep instances in autoscaling groups together
First thought is to graph them as one thing, but in an autoscaling group there can be instances launched with different launchconfigs (and potentially different SG settings). Also instances can have been attached with any SG setting.
Redshift clusters are not being scanned. Should be fairly easy to add (see _scan_rds)
Find a nice way to represent instances from EMR clusters
RDS Clusters (Aurora) are not being scanned. Should be fairly easy to add (see _scan_rds)
We get the following when trying to run inside of version of perl 5.18.2. Looks like minimum version maybe be required.
Feature "postderef" is not supported by Perl 5.18.2 at lib/AWS/Network/SecurityGroupMap.pm line 32.
BEGIN failed--compilation aborted at lib/AWS/Network/SecurityGroupMap.pm line 32.
Compilation failed in require at bin/map_network_sgs line 4.
BEGIN failed--compilation aborted at bin/map_network_sgs line 4.
Hi, When running the program I get an error
Can't use an undefined value as an ARRAY reference at lib/AWS/Network/SecurityGroupMap.pm line 154.
Maybe each VPC can be put into a cluster/subgraph https://graphviz.gitlab.io/_pages/Gallery/directed/cluster.html
This seems doable with push_subgraph and pop_subgraph https://metacpan.org/pod/GraphViz2#push_subgraph(%5Bname-=%3E-$name,-edge-=%3E-%7B...%7D,-graph-=%3E-%7B...%7D,-node-=%3E-%7B...%7D,-subgraph-=%3E-%7B...%7D%5D)
Example of usage:
https://metacpan.org/source/RSAVAGE/GraphViz2-2.46/scripts/sub.graph.frames.pl
I know this is not an issue but I wanted to document it for others to use in the future.
cd ~
git clone https://github.com/pplu/aws-map.git
curl -L https://install.perlbrew.pl | bash
perlbrew install perl-5.30.0
perlbrew switch perl-5.30.0
# I ran the following each as individual commands but a space delimited single line works as well.
sudo cpan Carton Moose Want PerlIO::utf8_strict IO::Socket::SSL Params::Validate DateTime Image::Size Mojolicious::Lite
brew install pango librsvg
carton install
At this point I could get the SVG and DOT files to generate using the command
carton exec perl -I lib bin/map_network_sgs us-east-1
I could not get the PNG to work, there is an issue with brew install Graphviz which is what I was using. Building Graphviz manually from source with the --with-pangocairo=yes flag seemed to resolve this issue.
cd /tmp
wget https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz
tar xvfz graphviz.tar.gz
cd graphviz-2.40.1/
rm -rf /usr/local/lib/graphviz # in case old stuff is there
./configure --includedir=/usr/local/include/graphviz --with-pangocairo=yes
make -j 8
make install
cd ~/aws-map/
carton exec perl -I lib bin/map_network_sgs us-east-1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.