Skip to content
Cloudy with a chance of Prolog
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle
lib
prolog
.gitignore
Gemfile
Gemfile.lock
README.md
graphs.rb

README.md

What if cloud infrastructure could be queried and managed with Prolog?

Currently you can run bundle exec ruby graphs.rb and you'll get a graph directory segmented by region. You can query the resulting graphs by loading the files into any Prolog interpreter. API documentation will expand as the library develops but if you want to use it now then the current use case is basically just whatever is in graphs.rb.

$ tree graph
graph
├ us-east-1
│   ├ ec2.pl
│   ├ image.pl
│   ├ key.pl
│   ├ net.pl
│   ├ sg.pl
│   ├ snapshot.pl
│   ├ subnet.pl
│   ├ volume.pl
│   └ vpc.pl
├ us-east-2
│   ├ ec2.pl
│   ├ image.pl
│   ├ key.pl
│   ├ net.pl
│   ├ sg.pl
│   ├ snapshot.pl
│   ├ subnet.pl
│   ├ volume.pl
│   └ vpc.pl
├ us-west-1
│   ├ ec2.pl
│   ├ image.pl
│   ├ key.pl
│   ├ net.pl
│   ├ sg.pl
│   ├ snapshot.pl
│   ├ subnet.pl
│   ├ volume.pl
│   └ vpc.pl
└ us-west-2
    ├ ec2.pl
    ├ image.pl
    ├ key.pl
    ├ net.pl
    ├ sg.pl
    ├ snapshot.pl
    ├ subnet.pl
    ├ volume.pl
    └ vpc.pl
You can’t perform that action at this time.