nodestream plugin for GCP Asset Inventory
Project description
Nodestream Google Cloud Asset Inventory Plugin
This repo contains a Nodestream plugin to import Cloud Assets and Policies from GCP Asset Inventory into a graph database. Nodestream is a declarative framework for Building, Maintaining, and Anaylzing Data in a Graph Database.
Features
- Automated download of Asset and Policy data from GCP Asset Inventory and import into a graph database
- Graph data model supports exploration and analysis of GCP Resources
Getting Started
Setup Neo4j
- You can create an Aura instance here
- or
- You can run Neo4j in a docker container like this:
docker run \
--restart always \
--publish=7474:7474 --publish=7687:7687 \
--env NEO4J_PLUGINS='["apoc"]' \
neo4j:5
- Initial credentials are username: neo4j, password: neo4j
Authenticate to GCP
- Follow documentation here to authenticate to Google Cloud
Install Nodestream
pip install nodestream
Install Nodestream Plugin
pip install nodestream-plugin-gcp-asset-inventory
Configure Nodestream
- Add the following to nodestream.yaml
plugins:
- name: gcp_asset_inventory
config:
project_id: <insert your GCP project ID>
targets:
my-db:
database: neo4j
uri: bolt://localhost:7687
username: neo4j
password: yourPassword
Preparing the database with Nodestream Migrations
-
nodestream migrations make
-
nodestream migrations run --target my-db
Run the Pipelines
-
nodestream run gcpAsset --target my-db
-
nodestream run gcpPolicy --target my-db
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nodestream_plugin_gcp_asset_inventory-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3075bc51a544b58d87f6675a9ab0c412f7fe9138bd7390cc6afe1574e8c91c |
|
MD5 | 6cfac79f7b63a180dc1ddbdb71f2b425 |
|
BLAKE2b-256 | 3317e478d37c54fa72ab683362aa84d50b489b9f7a10cbdb97b8410047a668d9 |
Close
Hashes for nodestream_plugin_gcp_asset_inventory-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec270122f0d9df8a049d3f1ff7b7ff8776dc97883ae2fad738a67ee9ffe5334 |
|
MD5 | 6ced8424e5ba810a14cd64002dbdbb86 |
|
BLAKE2b-256 | f7634409b726d79356c5ec9bd166f928c248fc84b587a074af60a06ee06c19b9 |