|
@@ -2,19 +2,42 @@
|
|
|
|
|
|
## Running
|
|
|
|
|
|
-Download and run the APOC Docker image of Neo4j
|
|
|
+1) Download and run neo4j container
|
|
|
|
|
|
```
|
|
|
-mkdir plugins
|
|
|
-pushd plugins
|
|
|
-wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.1.3.7/apoc-3.1.3.7-all.jar
|
|
|
-popd
|
|
|
-
|
|
|
docker run --rm \
|
|
|
--publish=7474:7474 --publish=7687:7687 \
|
|
|
--volume=$HOME/tmp/neo4j/data:/data \
|
|
|
--volume=$HOME/tmp/neo4j/logs:/logs \
|
|
|
- --volume=$PWD/plugins:/plugins \
|
|
|
-e NEO4J_AUTH='none' \
|
|
|
neo4j:3.1.4
|
|
|
```
|
|
|
+
|
|
|
+2) Copy the config.yaml.example file to config.yaml and add in account information
|
|
|
+
|
|
|
+```
|
|
|
+cp config.yaml.example config.yaml
|
|
|
+```
|
|
|
+
|
|
|
+3) Run bunder
|
|
|
+
|
|
|
+```
|
|
|
+bundle install
|
|
|
+```
|
|
|
+
|
|
|
+4) Run the data loader
|
|
|
+
|
|
|
+```
|
|
|
+rake load_all
|
|
|
+```
|
|
|
+
|
|
|
+5) Point your web browswer at http://localhost:7474
|
|
|
+
|
|
|
+
|
|
|
+## Example Queries
|
|
|
+
|
|
|
+All S3 buckets by size
|
|
|
+```
|
|
|
+MATCH (n:Bucket)-[o:owner]-(a:AwsAccount) RETURN n.name, n.size, a.name ORDER by n.size DESC
|
|
|
+```
|
|
|
+
|